github.com/yoyofx/yoyogo
v1.8.7
#2238 most downloaded on Go modules
yoyofx/yoyogo
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 7 months
Some releases are documented
notes for 10 of 40 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
48 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
48 releases · Jun 2020 to Feb 2024Releases
latest 48-
v1.8.707 Feb 2024Release notes
Open source →- Integrated swagger support
Used Swagger UI
// IRouteBuilder app.UseEndpoints(...) endpoints.UseSwaggerDoc(rb, swagger.Info{ Title: "YoyoGO 框架文档演示", Version: "v1.0.0", Description: "框架文档演示swagger文档 v1.0 [ #yoyogo](https://github.com/yoyofx/yoyogo).", TermsOfService: "https://dev.yoyogo.run", Contact: swagger.Contact{ Email: "[email protected]", Name: "yoyogo", }, License: swagger.License{ Name: "MIT", Url: "https://opensource.org/licenses/MIT", }, }, func(openapi *swagger.OpenApi) { openapi.AddSecurityBearerAuth() }) // mvc controller ```golang // DocumentResponse custom document response type DocumentResponse struct { Message string `json:"message" doc:"消息"` List []DocumentDto `json:"list" doc:"文档列表"` Success bool `json:"success" doc:"是否成功"` } func (controller UserController) GetDocumentList(request *struct { mvc.RequestGET `route:"/v1/user/doc/list" doc:"获取全部文档列表"` }) DocumentResponse { return DocumentResponse{Message: "GetDocumentList", List: []DocumentDto{ {Id: 1, Name: "test1", Time: time.Now()}, {Id: 2, Name: "test2", Time: time.Now()}, {Id: 3, Name: "test3", Time: time.Now()}, {Id: 4, Name: "test4", Time: time.Now()}, {Id: 5, Name: "test5", Time: time.Now()}, {Id: 6, Name: "test6", Time: time.Now()}, }, Success: true} }
-
v1.8.7-0.20240207091319-6924b335254507 Feb 2024 pre-releaseNothing published for this version
-
v1.8.614 Dec 2023Release notes
Open source →- fixed bug for httpclient add header.
- update grpc / viper and others dependencies version .
-
v1.8.6-0.20231214061954-b06cc2953fcf14 Dec 2023 pre-releaseNothing published for this version
-
v1.8.506 May 2023Release notes
Open source →- update golang.org/x/image to 0.5.0
- update prometheus/client_golang to v1.15.1
-
v1.8.423 Sep 2022 -
v1.8.4-0.20220923093130-f30952a460f023 Sep 2022 pre-releaseNothing published for this version
-
v1.8.302 Aug 2022 -
v1.8.231 May 2022 -
v1.8.125 Apr 2022Release notes
Open source →Features
- Get config value for DSL, that support key or ref object.
Such as YAML:
env: ${CUSTOM_ENV} profile: dns: ${REMOTE_HOST} ip: ${REMOTE_IP:10.0.1.12} namespace: ${MYNAMESPACE:space.localhost}
Go Example
type Profile struct { DNS string `config:"dns"` IP string `config:"ip"` NS string `config:"namespace"` } config := abstractions.NewConfigurationBuilder(). AddEnvironment(). AddYamlFile("config").Build() config.GetConfigObject("profile", &profile) assert.Equal(t, profile.NS, "space.yoyogo.run") assert.Equal(t, profile.DNS, "my host") assert.Equal(t, profile.IP, "10.0.1.12")
or
env := config.Get("env") dns := config.Get("profile.dns") ip := config.Get("profile.ip") assert.Equal(t, env, "my env variable") assert.Equal(t, dns, "my host") assert.Equal(t, ip, "10.0.1.12")
-
v1.8.1-0.20220422032213-47bf2394f8d822 Apr 2022 pre-releaseNothing published for this version
-
v1.8.020 Apr 2022Release notes
Open source →go runtime upgrade 1.18
1.action parameters mapping functions
2.action parameters mapping functions v2
3.mixed bindings.
4.添加本地配置对象
5.优化dockerfile -
v1.7.1110 Nov 2021 -
v1.7.1010 Oct 2021Release notes
Open source →Fixed bugs:
- web: fixed request body max bytes that when upload file, set config max_request_size for fasthttp MaxRequestBodySize.
-
v1.7.918 Sep 2021Nothing published for this version
-
v1.7.827 Aug 2021Nothing published for this version
-
v1.7.8-0.20210803090413-e3586ad5ed8c03 Aug 2021 pre-releaseNothing published for this version
-
v1.7.702 Aug 2021Nothing published for this version
-
v1.7.620 Jul 2021Nothing published for this version
-
v1.7.514 Jul 2021Nothing published for this version
-
v1.7.408 Jul 2021Nothing published for this version
-
v1.7.306 Jul 2021Nothing published for this version
-
v1.7.208 Jun 2021Nothing published for this version
-
v1.7.126 May 2021Nothing published for this version
-
v1.7.1-0.20210513084527-f181f59680de13 May 2021 pre-releaseNothing published for this version
-
v1.7.012 May 2021Nothing published for this version
-
v1.6.910 May 2021Nothing published for this version
-
v1.6.824 Apr 2021Nothing published for this version
-
v1.6.8-0.20210421093634-0d33e01a719621 Apr 2021 pre-releaseNothing published for this version
-
v1.6.713 Apr 2021Nothing published for this version
-
v1.6.606 Apr 2021Nothing published for this version
-
v1.6.502 Feb 2021Nothing published for this version
-
v1.6.421 Jan 2021Nothing published for this version
-
v1.6.315 Jan 2021Nothing published for this version
-
v1.6.212 Jan 2021Nothing published for this version
-
v1.6.117 Dec 2020Nothing published for this version
-
v1.6.009 Dec 2020Nothing published for this version
-
v1.5.908 Dec 2020Nothing published for this version
-
v1.5.826 Nov 2020Nothing published for this version
-
v1.5.725 Nov 2020Nothing published for this version
-
v1.5.612 Nov 2020Nothing published for this version
-
v1.5.509 Oct 2020Nothing published for this version
-
v1.5.402 Sep 2020Nothing published for this version
-
v1.5.327 Aug 2020Nothing published for this version
-
v1.5.221 Aug 2020Nothing published for this version
-
v1.5.112 Aug 2020Nothing published for this version
-
v1.5.031 Jul 2020Nothing published for this version
-
v1.4.10-0.20200624075804-d40622cecad124 Jun 2020 pre-releaseNothing published for this version