Documentation ¶
Index ¶
- Constants
- type B
- type BS
- type E
- type N
- type S
- type T
- func (t *T) Append(b B)
- func (t *T) Cap() int
- func (t *T) Clear()
- func (t *T) Clone() (c *T)
- func (t *T) Contains(s B) bool
- func (t *T) Equal(ta *T) bool
- func (t *T) Key() B
- func (t *T) Len() int
- func (t *T) MarshalJSON(dst B) (b B, err error)
- func (t *T) Relay() (s B)
- func (t *T) Slice(start, end int) *T
- func (t *T) StartsWith(prefix *T) bool
- func (t *T) String() string
- func (t *T) ToByteSlice() (b []B)
- func (t *T) ToStringSlice() (b []S)
- func (t *T) UnmarshalJSON(b B) (r B, err error)
- func (t *T) Value() B
Constants ¶
View Source
const ( Key = iota Value Relay )
The tag position meanings so they are clear when reading.
View Source
const ( MarkerReply = "reply" MarkerRoot = "root" MarkerMention = "mention" )
T marker strings for e (reference) tags.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
T is a list of strings with a literal ordering.
Not a set, there can be repeating elements.
func NewWithCap ¶
func (*T) MarshalJSON ¶
MarshalJSON appends the JSON form to the passed bytes.
func (*T) StartsWith ¶
StartsWith checks a tag has the same initial set of elements.
The last element is treated specially in that it is considered to match if the candidate has the same initial substring as its corresponding element.
func (*T) ToByteSlice ¶
func (*T) ToStringSlice ¶
func (*T) UnmarshalJSON ¶
UnmarshalJSON decodes the provided JSON tag list (array of strings), and returns any remainder after the close bracket has been encountered.
Click to show internal directories.
Click to hide internal directories.