Documentation
¶
Index ¶
- func GenerateRandomId() string
- func IntInSlice(n int, ns []int) bool
- func Keys(m map[int][]string) []int
- func Max(x, y int32) int32
- func MergeIntSlices(a, b []int) []int
- func MsgPackMarshal(v interface{}) ([]byte, error)
- func MsgPackUnMarshal(data []byte, v interface{}) error
- func ReadJsonBody(body io.ReadCloser, out interface{}) (err error)
- func StingInSlice(s string, ss []string) bool
- func WithLock(lock sync.Locker, f func())
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomId ¶
func GenerateRandomId() string
func IntInSlice ¶
func MergeIntSlices ¶
func MsgPackMarshal ¶
func MsgPackUnMarshal ¶
func ReadJsonBody ¶
func ReadJsonBody(body io.ReadCloser, out interface{}) (err error)
read from ReadCloser and unmarshal to out; `out` should be of POINTER type
func StingInSlice ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.