tags

package
v0.269.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL