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

Comment-based directive to set specific OptionFunc name #14

Open
object88 opened this issue Aug 7, 2019 · 0 comments
Open

Comment-based directive to set specific OptionFunc name #14

object88 opened this issue Aug 7, 2019 · 0 comments

Comments

@object88
Copy link
Owner

object88 commented Aug 7, 2019

Given code:

package foo

type FooOptions struct {
  //options:name AssignA
  a string
}

Generate an OptionFunc with a different name:

func (fo *FooOption) AssignA(a string) options.Option {
  // etc
}

The exact directive semantics are TBD, and will depend on the complete set of functionality to be baked into this tool.

@object88 object88 changed the title Annotation to set specific OptionFunc name Tag to set specific OptionFunc name Aug 7, 2019
@object88 object88 changed the title Tag to set specific OptionFunc name Comment-based directive to set specific OptionFunc name Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant