...

Package tag

import "github.com/doug-martin/goqu/v9/internal/tag"
Overview
Index

Overview ▾

type Options

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.

type Options string

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