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 FirstNonEmpty(v ...string) string
- func GetPointer(v interface{}) interface{}
- 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 ¶
func CreateDirectory ¶
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 FirstNonEmpty ¶
func GetPointer ¶
func GetPointer(v interface{}) 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.
Click to show internal directories.
Click to hide internal directories.