Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spell incantation options "mixin" #26

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

svengreb
Copy link
Owner

Resolves #25

To allow to compose, manipulate and read spell incantation options afte
the initial creation, two new types will be added for the spell
packages [1]:

- <I> `spell.Options` - A `interface` type as a generic representation
  for `spell.Incantation` options.
- <I> `spell.Mixin` - A `interface` type that allows to compose
  functions that process `spell.Options` of `spell.Incantation`s.
  - `Apply(Options) (Options, error)` - applies generic `spell.Options`
    to `spell.Incantation` options.

[1]: https://pkg.go.dev/github.com/svengreb/wand/pkg/spell

GH-25
@svengreb svengreb added this to the 0.1.0 milestone Nov 23, 2020
@svengreb svengreb self-assigned this Nov 23, 2020
@svengreb svengreb merged commit 9ae4f89 into main Nov 23, 2020
@svengreb svengreb deleted the feature/gh-25-spell-incantation-opts-mixin branch November 23, 2020 19:24
@svengreb svengreb removed their assignment Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spell incantation options “mixin“
1 participant