Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefreshablesFieldTagOptions ¶
type RefreshablesFieldTagOptions struct {
// Name is currently not used, but this might be used in the future to override the name of generated methods.
Name string
// Exclude is used to indicate that the field should be excluded from generated code.
Exclude bool
}
RefreshablesFieldTagOptions represents custom struct options to change behavior of refreshables code generation.
func ParseTag ¶
func ParseTag(tag string) (RefreshablesFieldTagOptions, error)
ParseTag returns the RefreshablesFieldTagOptions from the tag. This uses a field tag syntax similar to json or yaml struct tags.
type Example struct {
Foo FooType `yaml:"foo,omitempty" refreshables:",exclude"`
}
Click to show internal directories.
Click to hide internal directories.