Documentation
¶
Index ¶
- Constants
- Variables
- func GetByte(url string) ([]byte, error)
- func GetJSON(url string, v interface{}) error
- func GetJs(url string) (string, error)
- func GetRequest(url string) (*http.Response, error)
- func GetString(url string) (string, error)
- func StatusCode(url string) (int, error)
- type UserAgentTransport
Constants ¶
View Source
const UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.27 Safari/537.36"
Variables ¶
View Source
var DefaultClient = http.DefaultClient
Functions ¶
func StatusCode ¶
Types ¶
type UserAgentTransport ¶
type UserAgentTransport struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.