tag

package
v9.9.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options string

tagOptions is the string following a comma in a struct field's "json" tag, or the empty string. It does not include the leading comma.

func New

func New(tagName string, st reflect.StructTag) Options

func (Options) Contains

func (o Options) Contains(optionName string) bool

Contains reports whether a comma-separated list of options contains a particular substr flag. substr must be surrounded by a string boundary or commas.

func (Options) Equals

func (o Options) Equals(val string) bool

Contains reports whether a comma-separated list of options contains a particular substr flag. substr must be surrounded by a string boundary or commas.

func (Options) IsEmpty

func (o Options) IsEmpty() bool

func (Options) Values

func (o Options) Values() []string

Jump to

Keyboard shortcuts

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