Documentation ¶
Index ¶
- Constants
- func AddDefaultUrlSchema(urlStr string) (ret string, err error)
- func AddSepIfNeeded(utl string) string
- func CombineUrls(base, uri string) (ret string)
- func GenUrlWithParams(pth string, params map[string]interface{}, baseUrl string) (url string)
- func Get(url string, headers []domain.Header) (ret []byte, code int, err error)
- func IsSuccessCode(code int) (success bool)
- func Post(url string, data interface{}) (ret []byte, err error)
- func PostOrPut(url string, method string, data interface{}) (ret []byte, err error)
- func Put(url string, data interface{}) (ret []byte, err error)
Constants ¶
View Source
const (
Verbose = true
)
Variables ¶
This section is empty.
Functions ¶
func AddDefaultUrlSchema ¶
func AddSepIfNeeded ¶
func CombineUrls ¶
func GenUrlWithParams ¶
func IsSuccessCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.