Documentation ¶
Index ¶
- Constants
- type BS
- type T
- func (t *T) Append(b ...by) (tt *T)
- func (t *T) B(i no) (b by)
- func (t *T) BS() (bs []by)
- func (t *T) Cap() no
- func (t *T) Clear()
- func (t *T) Clone() (c *T)
- func (t *T) Contains(s by) (b bo)
- func (t *T) Equal(ta *T) bo
- func (t *T) F() (b []by)
- func (t *T) FilterKey() by
- func (t *T) Key() by
- func (t *T) Len() no
- func (t *T) Less(i, j no) bo
- func (t *T) Marshal(dst by) (b by)
- func (t *T) Relay() (s by)
- func (t *T) S(i no) (s st)
- func (t *T) Slice(start, end no) *T
- func (t *T) StartsWith(prefix *T) bo
- func (t *T) Swap(i, j no)
- func (t *T) ToByteSlice() (b []by)
- func (t *T) ToStringSlice() (b []st)
- func (t *T) Unmarshal(b by) (r by, err er)
- func (t *T) Value() by
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 ¶
type T struct {
// contains filtered or unexported fields
}
T is a list of strings with a literal ordering.
Not a set, there can be repeating elements.
func FromBytesSlice ¶
func FromBytesSlice(fields ...by) (t *T)
func NewWithCap ¶
func NewWithCap(c no) *T
func (*T) Contains ¶
func (t *T) Contains(s by) (b bo)
Contains returns true if the provided element is found in the tag slice.
func (*T) FilterKey ¶
func (t *T) FilterKey() by
FilterKey returns the first element of a filter tag (the key) with the # removed
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 *T) ToByteSlice() (b []by)
func (*T) ToStringSlice ¶
func (t *T) ToStringSlice() (b []st)
Click to show internal directories.
Click to hide internal directories.