Skip to content

Releases: gone-io/gone

增加新组件urllib

26 May 03:30
Compare
Choose a tag to compare

封装了 github.com/imroc/req/v3,用于发送http请求,打通了server和client的traceId
使用方法:

// 1. 引入
import 	"github.com/gone-io/gone/goner/urllib"

//....

type x struct {
      //...
       //2. 注入组件
	urllib.Client `gone:"gone-urllib"`

}

//...

func (s *x) use(){
   // 3.  使用 urllib.Client 发送请求
     result, err := s.R().
		SetSuccessResult(&r).
		SetErrorResult(&r).
		SetBody(event).
		Post(url)
}

依赖升级+支持结构体数组配置

24 May 03:35
Compare
Choose a tag to compare

v0.0.29: Merge pull request #7 from shenweijiekdel/main

23 Apr 08:56
087909b
Compare
Choose a tag to compare
fix: path.XXX -> filepath.XXX 兼容多操作系统

v0.0.28: Merge pull request #5 from shenweijiekdel/main

30 Jan 06:21
d4678c5
Compare
Choose a tag to compare

v0.0.24 正式发布了

09 Nov 15:12
Compare
Choose a tag to compare

主要接口已经稳定,基本组件已经提供完毕,可以基本跑一个web服务