Documentation
¶
Index ¶
- type CMap
- func (v CMap) Add(key, value string) CMap
- func (v CMap) Append(key, value string) CMap
- func (v CMap) BSON() (bm bson.M)
- func (v CMap) Del(key string) CMap
- func (v CMap) Drop(key, value string) CMap
- func (v CMap) Encode() string
- func (v CMap) Get(key string) string
- func (v CMap) Insert(key, value string) CMap
- func (v CMap) Obtain(key string) []string
- func (v CMap) Pop(key string) string
- func (v CMap) Set(key, value string) CMap
- func (v CMap) Struct(value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMap ¶
func StructToCMap ¶
StructToCMap struct to CMap, maybe use Encode
func (CMap) Encode ¶
Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.
func (CMap) 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.
Click to show internal directories.
Click to hide internal directories.