Documentation
¶
Overview ¶
A util package collection.
For more information, goto godoc https://godoc.org/github.com/mnhkahn/gogogo/util
Chinese details, goto http://blog.cyeam.com//golang/2018/08/27/retry?utm_source=github
Index ¶
- func Goroutine() map[string]interface{}
- func HttpJson(method, url string, contentType string, body io.Reader, v interface{}) error
- func HttpXml(method, url string, contentType string, body io.Reader, v interface{}) error
- func NoRetryError(err error) stop
- func Retry(attempts int, sleep time.Duration, fn func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Goroutine ¶
func Goroutine() map[string]interface{}
Goroutine returns app detail, including numbers of goroutines, threads, CPU and GOMAXPROCS.
func NoRetryError ¶
func NoRetryError(err error) stop
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.