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) CMap(values url.Values) CMap
- 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 interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMap ¶
func StructToCMap ¶ added in v1.20.2
func StructToCMap(v interface{}) (values CMap)
struct to CMap, maybe use Encode
func (CMap) Append ¶ added in v1.9.10
Append set the key to value if it doesn't exists. append if it exists.
func (CMap) Encode ¶ added in v1.20.2
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.
func (CMap) Insert ¶ added in v1.9.10
Append set the key to value if it doesn't exists. insert if it exists.
Click to show internal directories.
Click to hide internal directories.