package util
Import Path
github.com/imroc/req/v3/internal/util (on go.dev)
Dependency Relation
imports 5 packages, and imported by 2 packages
Involved Source Files
util.go
Package-Level Functions (total 9)
BasicAuthHeaderValue return the header of basic auth.
CreateDirectory create the directory.
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.
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.
GetPointer return the pointer of the interface.
GetType return the underlying type.
IsJSONType method is to check JSON content type or not
IsStringEmpty method tells whether given string is empty or not
IsXMLType method is to check XML content type or not
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |