Documentation ¶
Index ¶
- func JoinValue(group, name string) string
- func SplitValue(value string) (group, name string)
- type Tags
- func (self *Tags) Add(group, name string)
- func (self *Tags) AddValue(value string)
- func (self *Tags) Delete(group, name string)
- func (self *Tags) DeleteGroup(group string)
- func (self *Tags) DeleteValue(value string)
- func (self *Tags) Get(group string, separate bool) []string
- func (self *Tags) GetSingle(group string, separate bool) (string, bool)
- func (self *Tags) Have(group, name string) bool
- func (self *Tags) HaveGroup(group string) bool
- func (self *Tags) HaveValue(value string) bool
- func (self *Tags) Map() map[string]([]string)
- func (self *Tags) SetSingle(group, name string)
- func (self *Tags) SetSingleValue(value string)
- func (self *Tags) String() string
- func (self *Tags) Values() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitValue ¶
Types ¶
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
func NewFromString ¶
func (*Tags) DeleteGroup ¶
func (*Tags) DeleteValue ¶
func (*Tags) SetSingleValue ¶
NOTE: adding value which not contains group, will first delete all other
values which have no group
Click to show internal directories.
Click to hide internal directories.