tags

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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