Documentation ¶
Index ¶
- func AppendIfMissing(slice []string, s string) []string
- func Distinct(ss []string) (distincted []string)
- func GenWorkers(num int) chan<- func()
- func GetHTTPClient(proxy string) (*http.Client, error)
- func IP() (ipv4Addrs []string, ipv6Addrs []string, err error)
- func Major(version string) string
- func PrependProxyEnv(cmd string) string
- func Truncate(str string, length int) string
- func URLPathJoin(baseURL string, paths ...string) (string, error)
- func URLPathParamJoin(baseURL string, paths []string, params map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
AppendIfMissing append to the slice if missing
func GenWorkers ¶
func GenWorkers(num int) chan<- func()
GenWorkers generates goroutine http://qiita.com/na-o-ys/items/65373132b1c5bc973cca
func GetHTTPClient ¶ added in v0.15.7
GetHTTPClient return http.Client
func PrependProxyEnv ¶
PrependProxyEnv prepends proxy environment variable
func URLPathJoin ¶
URLPathJoin make URL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.