Skip to content

Update module github.com/guonaihong/gout to v0.3.11#10

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-guonaihong-gout-0.x
Open

Update module github.com/guonaihong/gout to v0.3.11#10
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-guonaihong-gout-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2023

This PR contains the following updates:

Package Change Age Confidence
github.com/guonaihong/gout v0.3.1v0.3.11 age confidence

Release Notes

guonaihong/gout (github.com/guonaihong/gout)

v0.3.11

Compare Source

What's Changed

New Contributors

Full Changelog: guonaihong/gout@v0.3.10...v0.3.11

v0.3.10: 版本

Compare Source

  1. 优化decode ReadAll性能 #​384 @​asjdf
  2. 修复变量单词拼写 #​382 @​garudaen
  3. socks5支持用户名和密码 #​387
  4. 修复golangci-lint 99%+的错误 #​388

v0.3.9: 版本

Compare Source

  1. debug模块的trace信息可以输出的io.Writer里面
  2. 可以自定义content-type替换框架里面的设置 @​simpleapples

v0.3.8

Compare 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.7: 版本

Compare 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.6

Compare Source

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

v0.3.5: 版本

Compare Source

url 支持模板语法bug修复

v0.3.4

Compare 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.3: 版本

Compare Source

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

v0.3.2: 版本

Compare Source

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

AutoDecodeBody()

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

Content-Encoding: deflate
Content-Encoding: br

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.7 Update module github.com/guonaihong/gout to v0.3.8 Jul 13, 2023
@renovate renovate bot force-pushed the renovate/github.com-guonaihong-gout-0.x branch from 30d387b to 4e0a72e Compare July 13, 2023 17:11
@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.8 Update module github.com/guonaihong/gout to v0.3.8 - autoclosed Oct 23, 2023
@renovate renovate bot closed this Oct 23, 2023
@renovate renovate bot deleted the renovate/github.com-guonaihong-gout-0.x branch October 23, 2023 09:32
@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.8 - autoclosed Update module github.com/guonaihong/gout to v0.3.8 Oct 23, 2023
@renovate renovate bot reopened this Oct 23, 2023
@renovate renovate bot restored the renovate/github.com-guonaihong-gout-0.x branch October 23, 2023 14:56
@renovate renovate bot force-pushed the renovate/github.com-guonaihong-gout-0.x branch from 4e0a72e to f13f727 Compare October 23, 2023 14:57
@renovate renovate bot force-pushed the renovate/github.com-guonaihong-gout-0.x branch from f13f727 to fc1746e Compare December 17, 2023 09:06
@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.8 Update module github.com/guonaihong/gout to v0.3.9 Dec 17, 2023
@renovate renovate bot force-pushed the renovate/github.com-guonaihong-gout-0.x branch from fc1746e to fa3e9e3 Compare July 15, 2024 07:39
@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.9 Update module github.com/guonaihong/gout to v0.3.10 Jul 15, 2024
@renovate renovate bot changed the title Update module github.com/guonaihong/gout to v0.3.10 Update module github.com/guonaihong/gout to v0.3.11 Jun 29, 2025
@renovate renovate bot force-pushed the renovate/github.com-guonaihong-gout-0.x branch from fa3e9e3 to b2d1848 Compare June 29, 2025 17:08
@renovate
Copy link
Contributor Author

renovate bot commented Jun 29, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 4 additional dependencies were updated

Details:

Package Change
github.com/leodido/go-urn v1.2.0 -> v1.2.4
github.com/mattn/go-isatty v0.0.14 -> v0.0.19
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 -> v0.9.0
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d -> v0.10.0

@renovate
Copy link
Contributor Author

renovate bot commented Dec 15, 2025

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 4 additional dependencies were updated

Details:

Package Change
github.com/leodido/go-urn v1.2.0 -> v1.2.4
github.com/mattn/go-isatty v0.0.14 -> v0.0.19
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 -> v0.9.0
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d -> v0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants