Documentation ¶
Index ¶
- type T
- func (t T) AppendUnique(tag tag.T) T
- func (t T) ContainsAny(tagName string, values []string) bool
- func (t T) FilterOut(tagPrefix []string) T
- func (t T) GetAll(tagPrefix []string) T
- func (t T) GetFirst(tagPrefix []string) *tag.T
- func (t T) GetLast(tagPrefix []string) *tag.T
- func (t T) MarshalTo(dst []byte) []byte
- func (t T) Scan(src any) (err error)
- func (t T) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
T is a list of T - which are lists of string elements with ordering and no uniqueness constraint (not a set).
func (T) AppendUnique ¶
AppendUnique appends a tag if it doesn't exist yet, otherwise does nothing. the uniqueness comparison is done based only on the first 2 elements of the tag.
func (T) ContainsAny ¶
ContainsAny returns true if any of the strings given in `values` matches any of the tag elements.
func (T) MarshalTo ¶
MarshalTo appends the JSON encoded byte of T as [][]string to dst. String escaping is as described in RFC8259.
Click to show internal directories.
Click to hide internal directories.