Discover Packages
github.com/dreamlu/gt
tool
type
cmap
package
Version:
v1.8.3
Opens a new window with list of versions in this module.
Published: May 22, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Add adds the value to key. It appends to any existing
values associated with key.
Del deletes the values associated with key.
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.
Set sets the key to value. It replaces any existing
values.
func (v CMap ) Struct(value interface{}) error
CMap to struct data
value like
type Te struct {
Name string `json:"name"` // must string type
ID string `json:"id"` // must string type
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.