PackageTrack
Sign in Get early access

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 2025
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 107
  1. v0.3.12-0.20251116092005-4b8f85469b78 16 Nov 2025 pre-release

    Nothing published for this version

  2. v0.3.11 07 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.3.10...v0.3.11

    Open source →
  3. v0.3.11-0.20250107054713-63f56c3a23d1 07 Jan 2025 pre-release

    Nothing published for this version

  4. v0.3.11-0.20241214042244-404fba63c747 14 Dec 2024 pre-release

    Nothing published for this version

  5. v0.3.11-0.20240723095736-6081e7f1b22a 23 Jul 2024 pre-release

    Nothing published for this version

  6. v0.3.10 26 May 2024
    Release notes
    1. 优化decode ReadAll性能 #384 @asjdf
    2. 修复变量单词拼写 #382 @garudaen
    3. socks5支持用户名和密码 #387
    4. 修复golangci-lint 99%+的错误 #388
    Open source →
  7. v0.3.10-0.20240526020757-a7e7bd4dbfe7 26 May 2024 pre-release

    Nothing published for this version

  8. v0.3.10-0.20240523140519-b7068a7c7195 23 May 2024 pre-release

    Nothing published for this version

  9. v0.3.10-0.20240517114824-c72fd8fc3761 17 May 2024 pre-release

    Nothing published for this version

  10. v0.3.10-0.20240321163637-012ba1a66698 21 Mar 2024 pre-release

    Nothing published for this version

  11. v0.3.10-0.20240115111154-6a9cbe6d6db1 15 Jan 2024 pre-release

    Nothing published for this version

  12. v0.3.9 17 Dec 2023
    Release notes
    1. debug模块的trace信息可以输出的io.Writer里面
    2. 可以自定义content-type替换框架里面的设置 @simpleapples
    Open source →
  13. v0.3.9-0.20231217072533-8af3617af4d2 17 Dec 2023 pre-release

    Nothing published for this version

  14. v0.3.9-0.20231213150606-2521c68dd984 13 Dec 2023 pre-release

    Nothing published for this version

  15. v0.3.9-0.20231109054734-511f37ce6e77 09 Nov 2023 pre-release

    Nothing published for this version

  16. v0.3.8 13 Jul 2023
    Release notes

    在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
    	}
    }
    Open source →
  17. v0.3.8-0.20230713145410-9ad575c79362 13 Jul 2023 pre-release

    Nothing published for this version

  18. v0.3.8-0.20230508114601-23b76b42b06d 08 May 2023 pre-release

    Nothing published for this version

  19. v0.3.7 06 Mar 2023
    Release notes

    来源 #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
    */
    Open source →
  20. v0.3.7-0.20230210022831-894382a353c6 10 Feb 2023 pre-release

    Nothing published for this version

  21. v0.3.6 01 Feb 2023
    Release notes

    感谢 @panxl6 (可根据编译tag选择多种json序列化库)

    Open source →
  22. v0.3.5 30 Jan 2023

    Nothing published for this version

  23. v0.3.4 18 Jan 2023
    Release notes

    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()
    }
    Open source →
  24. v0.3.4-0.20230118060837-13ff215e59b2 18 Jan 2023 pre-release

    Nothing published for this version

  25. v0.3.3 18 Dec 2022
    Release notes

    新加SetJSONNotEscape接口,不转义json中的HTML字符

    Open source →
  26. v0.3.2 10 Dec 2022
    Release notes

    #343
    新加解码压缩数据包的接口

    AutoDecodeBody()

    只要Content-Encoding是deflate, br。都可以还原成压缩之前的格式。

    Content-Encoding: deflate
    Content-Encoding: br
    
    Open source →
  27. v0.3.1 23 Jul 2022

    Nothing published for this version

  28. v0.3.1-0.20220723135403-372dd18b3f5a 23 Jul 2022 pre-release

    Nothing published for this version

  29. v0.3.0 21 Jul 2022

    Nothing published for this version

  30. v0.2.13-0.20220527155245-d2a17911930a 27 May 2022 pre-release

    Nothing published for this version

  31. v0.2.12 04 Apr 2022

    Nothing published for this version

  32. v0.2.12-0.20220404143500-aa01ed159a76 04 Apr 2022 pre-release

    Nothing published for this version

  33. v0.2.11 02 Jan 2022

    Nothing published for this version

  34. v0.2.11-0.20211126045828-5fdb80013d43 26 Nov 2021 pre-release

    Nothing published for this version

  35. v0.2.10 07 Nov 2021

    Nothing published for this version

  36. v0.2.10-0.20211106135012-6fb5fc2279da 06 Nov 2021 pre-release

    Nothing published for this version

  37. v0.2.10-0.20211104103912-4290097d0e5a 04 Nov 2021 pre-release

    Nothing published for this version

  38. v0.2.9 26 Sep 2021

    Nothing published for this version

  39. v0.2.9-0.20210924045656-03296d3c45e5 24 Sep 2021 pre-release

    Nothing published for this version

  40. v0.2.8 19 Sep 2021

    Nothing published for this version

  41. v0.2.8-0.20210918131802-891749bb4196 18 Sep 2021 pre-release

    Nothing published for this version

  42. v0.2.7 08 Sep 2021

    Nothing published for this version

  43. v0.2.7-0.20210908022747-d943327e53f9 08 Sep 2021 pre-release

    Nothing published for this version

  44. v0.2.6 26 Aug 2021

    Nothing published for this version

  45. v0.2.5 22 Aug 2021

    Nothing published for this version

  46. v0.2.5-0.20210808132944-f9c10cce3064 08 Aug 2021 pre-release

    Nothing published for this version

  47. v0.2.5-0.20210804054749-d4d9069dc163 04 Aug 2021 pre-release

    Nothing published for this version

  48. v0.2.4 01 Aug 2021

    Nothing published for this version

  49. v0.2.4-0.20210801140345-3f8acf720b79 01 Aug 2021 pre-release

    Nothing published for this version

  50. v0.2.3 28 Jul 2021

    Nothing published for this version

  51. v0.2.3-0.20210728021641-de18de89433a 28 Jul 2021 pre-release

    Nothing published for this version

  52. v0.2.2 22 Jul 2021

    Nothing published for this version

  53. v0.2.1 05 Jul 2021

    Nothing published for this version

  54. v0.2.1-0.20210701151636-758557abc1a4 01 Jul 2021 pre-release

    Nothing published for this version

  55. v0.2.0 21 Jun 2021

    Nothing published for this version

  56. v0.1.12 16 Jun 2021

    Nothing published for this version

  57. v0.1.11 03 Jun 2021

    Nothing published for this version

  58. v0.1.11-0.20210514020859-bb1cad05eb30 14 May 2021 pre-release

    Nothing published for this version

  59. v0.1.10 14 May 2021

    Nothing published for this version

  60. v0.1.10-0.20210422151326-aaf95656ec9a 22 Apr 2021 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive