Documentation ¶
Overview ¶
Package kvutil
@author: xwc1125
Index ¶
- type KeyValue
- func (s *KeyValue) Encode() string
- func (s *KeyValue) Get(key string) string
- func (s *KeyValue) Join(a string, b string) string
- func (s *KeyValue) JoinAll(a string, b string) string
- func (s *KeyValue) JoinValues() string
- func (s *KeyValue) Set(key, value string) *KeyValue
- func (s *KeyValue) Sort() *KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValue ¶
type KeyValue struct {
// contains filtered or unexported fields
}
func NewKeyValue ¶
func NewKeyValue() *KeyValue
func (*KeyValue) Get ¶
Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.
func (*KeyValue) JoinValues ¶
Click to show internal directories.
Click to hide internal directories.