- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/lafikl/fluent
软件介绍
Fluent 是 Go 语言的 HTTP 客户端开发包,支持超时、重试等。
示例代码:
package main
import (
"fmt"
"github.com/lafikl/fluent"
"time"
)
func main() {
req := fluent.New()
req.Post("http://example.com").
InitialInterval(time.Duration(time.Millisecond)).
Json([]int{1, 3, 4}).
Retry(3)
res, err := req.Send()
if err != nil {
fmt.Println(err)
}
fmt.Println("donne ", res)
// They can be separated if you don't like chaining ;)
// for example:
// req.Get("http://example.com")
// req.Retry(3)
}
Hacker's Delight
Henry S. Warren Jr. / Addison-Wesley / 2002-7-27 / USD 59.99
A collection useful programming advice the author has collected over the years; small algorithms that make the programmer's task easier. * At long last, proven short-cuts to mastering difficult aspec......一起来看看 《Hacker's Delight》 这本书的介绍吧!
