github.com/guonaihong/gout
v0.3.11
#1749 most downloaded on Go modules
guonaihong/gout
What this package is like to depend on
Last release 9 months ago
16 Nov 2025
Release timing varies
gaps range from 8 days to 10 months
Rarely documented
notes for 9 of 50 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
107 releases · first in 2019
2 releases in the last 12 months
see the full history below
Release timeline
107 releases · Sep 2019 to Nov 2025Releases
latest 60 of 107-
v0.3.12-0.20251116092005-4b8f85469b7816 Nov 2025 pre-releaseNothing published for this version
-
v0.3.1107 Jan 2025Release notes
Open source →What's Changed
- fix by @guonaihong in #390
- fix(sec): upgrade github.com/gin-gonic/gin to 1.9.1 by @chncaption in #375
- fix:395 by @guonaihong in #396
New Contributors
- @chncaption made their first contribution in #375
Full Changelog: v0.3.10...v0.3.11
-
v0.3.11-0.20250107054713-63f56c3a23d107 Jan 2025 pre-releaseNothing published for this version
-
v0.3.11-0.20241214042244-404fba63c74714 Dec 2024 pre-releaseNothing published for this version
-
v0.3.11-0.20240723095736-6081e7f1b22a23 Jul 2024 pre-releaseNothing published for this version
-
v0.3.1026 May 2024 -
v0.3.10-0.20240526020757-a7e7bd4dbfe726 May 2024 pre-releaseNothing published for this version
-
v0.3.10-0.20240523140519-b7068a7c719523 May 2024 pre-releaseNothing published for this version
-
v0.3.10-0.20240517114824-c72fd8fc376117 May 2024 pre-releaseNothing published for this version
-
v0.3.10-0.20240321163637-012ba1a6669821 Mar 2024 pre-releaseNothing published for this version
-
v0.3.10-0.20240115111154-6a9cbe6d6db115 Jan 2024 pre-releaseNothing published for this version
-
v0.3.917 Dec 2023Release notes
Open source →- debug模块的trace信息可以输出的io.Writer里面
- 可以自定义content-type替换框架里面的设置 @simpleapples
-
v0.3.9-0.20231217072533-8af3617af4d217 Dec 2023 pre-releaseNothing published for this version
-
v0.3.9-0.20231213150606-2521c68dd98413 Dec 2023 pre-releaseNothing published for this version
-
v0.3.9-0.20231109054734-511f37ce6e7709 Nov 2023 pre-releaseNothing published for this version
-
v0.3.813 Jul 2023Release notes
Open source →在NewWithOpt 加上WithSocks5, WithProxy, WithUnixSocket三个函数。
new with opt unix socket
gout.WithUnixSocket为了让大家少用.UnixSocket而设计import ( "github.com/guonaihong/gout" ) func main() { // globalWithOpt里面包含连接池, 这是一个全局可复用的对象, 一个进程里面可能只需创建1个, 如果有多个不同的unixsocket,可以创建多个 globalWithOpt := gout.NewWithOpt(gout.WithUnixSocket("/tmp/test.socket")) err := globalWithOpt.GET("url").Do() if err != nil { fmt.Printf("err = %v\n" ,err) return } }
new with opt proxy
gout.WithProxy为了让大家少用.SetProxy而设计import ( "github.com/guonaihong/gout" ) func main() { // globalWithOpt里面包含连接池, 这是一个全局可复用的对象, 一个进程里面可能只需创建1个, 如果有多个不同的proxy,可以创建多个 globalWithOpt := gout.NewWithOpt(gout.WithProxy("http://127.0.0.1:7000")) err := globalWithOpt.GET("url").Do() if err != nil { fmt.Printf("err = %v\n" ,err) return } }
new with opt socks5
gout.WithSocks5为了让大家少用.SetSOCKS5而设计import ( "github.com/guonaihong/gout" ) func main() { // globalWithOpt里面包含连接池, 这是一个全局可复用的对象, 一个进程里面可能只需创建1个, 如果有多个不同的socks5,可以创建多个 globalWithOpt := gout.NewWithOpt(gout.WithSocks5("127.0.0.1:7000")) err := globalWithOpt.GET("url").Do() if err != nil { fmt.Printf("err = %v\n" ,err) return } }
-
v0.3.8-0.20230713145410-9ad575c7936213 Jul 2023 pre-releaseNothing published for this version
-
v0.3.8-0.20230508114601-23b76b42b06d08 May 2023 pre-releaseNothing published for this version
-
v0.3.706 Mar 2023Release notes
Open source →来源 #361
新加SetHeaderRaw接口与SetHeader API唯一的区别就是不修改header名. 大部分情况用SetHeader,如果有不修改header的需求再使用SetHeaderRaw。
package main import ( "fmt" "github.com/guonaihong/gout" "time" ) func main() { err := gout. //设置GET请求和url,:8080/test.header是127.0.0.1:8080/test.header的简写 GET(":8080/test.header"). //设置debug模式 Debug(true). //设置请求http header SetHeaderRaw(gout.H{ "h1": "v1", "h2": 2, "h3": float32(3.14), "h4": 4.56, "h5": time.Now().Unix(), "h6": time.Now().UnixNano(), "h7": time.Now().Format("2006-01-02")}). Do() if err != nil { fmt.Printf("%s\n", err) return } } /* > GET /test.header HTTP/1.1 > h2: 2 > h3: 3.14 > h4: 4.56 > h5: 1574081686 > h6: 1574081686471347098 > h7: 2019-11-18 > h1: v1 > < HTTP/1.1 200 OK < Content-Length: 0 */
-
v0.3.7-0.20230210022831-894382a353c610 Feb 2023 pre-releaseNothing published for this version
-
v0.3.601 Feb 2023 -
v0.3.530 Jan 2023Nothing published for this version
-
v0.3.418 Jan 2023Release notes
Open source →url 支持模板语法。
package main import ( "github.com/guonaihong/gout" ) type testURLTemplateCase struct { Host string } func main() { url := "https://{{.Host}}" // 发送GET方法 gout.GET(url, testURLTemplateCase{Host:"www.qq.com"}).Do() // 发送POST方法 gout.POST(url, testURLTemplateCase{Host:"www.github.com"}).Do() // 发送PUT方法 gout.PUT(url, testURLTemplateCase{Host:"www.baidu.com"}).Do() // 发送DELETE方法 gout.DELETE(url, testURLTemplateCase{Host:"www.google.com"}).Do() // 发送PATH方法 gout.PATCH(url, testURLTemplateCase{Host:"www.google.com"}).Do() // 发送HEAD方法 gout.HEAD(url, testURLTemplateCase{Host:"www.google.com"}).Do() // 发送OPTIONS gout.OPTIONS(url, testURLTemplateCase{Host:"www.google.com"}).Do() }
-
v0.3.4-0.20230118060837-13ff215e59b218 Jan 2023 pre-releaseNothing published for this version
-
v0.3.318 Dec 2022 -
v0.3.210 Dec 2022Release notes
Open source →#343
新加解码压缩数据包的接口AutoDecodeBody()只要Content-Encoding是deflate, br。都可以还原成压缩之前的格式。
Content-Encoding: deflate Content-Encoding: br -
v0.3.123 Jul 2022Nothing published for this version
-
v0.3.1-0.20220723135403-372dd18b3f5a23 Jul 2022 pre-releaseNothing published for this version
-
v0.3.021 Jul 2022Nothing published for this version
-
v0.2.13-0.20220527155245-d2a17911930a27 May 2022 pre-releaseNothing published for this version
-
v0.2.1204 Apr 2022Nothing published for this version
-
v0.2.12-0.20220404143500-aa01ed159a7604 Apr 2022 pre-releaseNothing published for this version
-
v0.2.1102 Jan 2022Nothing published for this version
-
v0.2.11-0.20211126045828-5fdb80013d4326 Nov 2021 pre-releaseNothing published for this version
-
v0.2.1007 Nov 2021Nothing published for this version
-
v0.2.10-0.20211106135012-6fb5fc2279da06 Nov 2021 pre-releaseNothing published for this version
-
v0.2.10-0.20211104103912-4290097d0e5a04 Nov 2021 pre-releaseNothing published for this version
-
v0.2.926 Sep 2021Nothing published for this version
-
v0.2.9-0.20210924045656-03296d3c45e524 Sep 2021 pre-releaseNothing published for this version
-
v0.2.819 Sep 2021Nothing published for this version
-
v0.2.8-0.20210918131802-891749bb419618 Sep 2021 pre-releaseNothing published for this version
-
v0.2.708 Sep 2021Nothing published for this version
-
v0.2.7-0.20210908022747-d943327e53f908 Sep 2021 pre-releaseNothing published for this version
-
v0.2.626 Aug 2021Nothing published for this version
-
v0.2.522 Aug 2021Nothing published for this version
-
v0.2.5-0.20210808132944-f9c10cce306408 Aug 2021 pre-releaseNothing published for this version
-
v0.2.5-0.20210804054749-d4d9069dc16304 Aug 2021 pre-releaseNothing published for this version
-
v0.2.401 Aug 2021Nothing published for this version
-
v0.2.4-0.20210801140345-3f8acf720b7901 Aug 2021 pre-releaseNothing published for this version
-
v0.2.328 Jul 2021Nothing published for this version
-
v0.2.3-0.20210728021641-de18de89433a28 Jul 2021 pre-releaseNothing published for this version
-
v0.2.222 Jul 2021Nothing published for this version
-
v0.2.105 Jul 2021Nothing published for this version
-
v0.2.1-0.20210701151636-758557abc1a401 Jul 2021 pre-releaseNothing published for this version
-
v0.2.021 Jun 2021Nothing published for this version
-
v0.1.1216 Jun 2021Nothing published for this version
-
v0.1.1103 Jun 2021Nothing published for this version
-
v0.1.11-0.20210514020859-bb1cad05eb3014 May 2021 pre-releaseNothing published for this version
-
v0.1.1014 May 2021Nothing published for this version
-
v0.1.10-0.20210422151326-aaf95656ec9a22 Apr 2021 pre-releaseNothing published for this version