Documentation ¶
Index ¶
- func DeepSearch(m map[string]interface{}, path []string) map[string]interface{}
- func Ensure(err error)
- func EnsureLeft(left interface{}, err error) interface{}
- func EnsureRight(err error, right interface{}) interface{}
- func JoinObject(arr interface{}, format ...string) (str string)
- func JsonCheck(req *http.Request) bool
- func LastChar(str string) uint8
- func QueryCheck(req *http.Request) bool
- func RandString(randLen int, randType RandType) string
- func RandomInt(min, max int) int
- func SetFormatter(isTerminal bool)
- func SomeOne(srv interface{}, def interface{}) interface{}
- func UserHomeDir() string
- type M
- type RandType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepSearch ¶
DeepSearch scans deep maps, following the key indexes listed in the
func EnsureLeft ¶
func EnsureLeft(left interface{}, err error) interface{}
EnsureLeft defined return left
func EnsureRight ¶
func EnsureRight(err error, right interface{}) interface{}
EnsureRight defined return right
func JoinObject ¶
JoinObject defined TODO
func RandString ¶
RandString defined random char
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package http is used as http.Client Usage: b := http.Post("http://.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str)
|
Package http is used as http.Client Usage: b := http.Post("http://.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) |
Click to show internal directories.
Click to hide internal directories.