Documentation ¶
Index ¶
- func BasicAuthHeaderValue(username, password string) string
- func CreateDirectory(dir string) (err error)
- func CutBytes(s, sep []byte) (before, after []byte, found bool)
- func CutString(s, sep string) (before, after string, found bool)
- func GetPointer(v interface{}) interface{}
- func GetType(v interface{}) reflect.Type
- func IsJSONType(ct string) bool
- func IsStringEmpty(str string) bool
- func IsXMLType(ct string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthHeaderValue ¶
BasicAuthHeaderValue return the header of basic auth.
func CreateDirectory ¶
CreateDirectory create the directory.
func CutBytes ¶
CutBytes slices s around the first instance of sep, returning the text before and after sep. The found result reports whether sep appears in s. If sep does not appear in s, cut returns s, nil, false.
CutBytes returns slices of the original slice s, not copies.
func CutString ¶
CutString slices s around the first instance of sep, returning the text before and after sep. The found result reports whether sep appears in s. If sep does not appear in s, cut returns s, "", false.
func GetPointer ¶
func GetPointer(v interface{}) interface{}
GetPointer return the pointer of the interface.
func IsJSONType ¶
IsJSONType method is to check JSON content type or not
func IsStringEmpty ¶
IsStringEmpty method tells whether given string is empty or not
Types ¶
This section is empty.