NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules
Go modules, #2494 by repository stars
Latest stable
v1.8.7
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 7 months
Most releases are documented
notes for 34 of 40 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
50 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// IRouteBuilder app.UseEn
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: "zl.hxd@hotmail.com",
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}
}Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
fixed bug for httpclient add header.
Nothing published for this version
update golang.org/x/image to 0.5.0
Repair vulnerability of CVE-* CVE-2022-27664
Nothing published for this version
Repair vulnerabilitys: CVE-2022-28948 CVE-2021-38561 CVE-2022-29526 CVE-2021-31525 CVE-2021-44716 CVE-2021-33194 CVE-2020-29652 CVE-2019-19794
Fixed Unhandled exception in gopkg.in/yaml.v3
Fixed Unhandled exception in gopkg.in/yaml.v3
Get config value for DSL, that support key or ref object.
env: ${CUSTOM_ENV}
profile:
dns: ${REMOTE_HOST}
ip: ${REMOTE_IP:10.0.1.12}
namespace: ${MYNAMESPACE:space.localhost}
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")
Nothing published for this version
1.action parameters mapping functions 2.action parameters mapping functions v2[](https://github.com/yoyofx) 3.mixed bindings.[](https://github.com/yoy
1.action parameters mapping functions 2.action parameters mapping functions v2 3.mixed bindings. 4.添加本地配置对象 5.优化dockerfile
print all stack traces for console
web: fixed request body max bytes that when upload file, set config max_request_size for fasthttp MaxRequestBodySize.
web context binding for ctx.Bind,add url binding function.
web: fixed binding function by BindWIthUri or BindWith(&,binding.Uri).
Nothing published for this version
Automatic refresh config object on nacos and apollo remote changes.
fixed graceful stop and readiness bugs.
New dependency injection framework https://github.com/yoyofxteam/dependencyinjection
upgrade go-grpc-middleware to v1.3.0
`bash go install github.com/yoyofx/yoyogo/cli/yygctl `
go install github.com/yoyofx/yoyogo/cli/yygctl
cd yoyogo/cli/yygctl
go install
$GOPATH
add $GOPATH to $PATH Environment variable
There are commands working with application root folder
yygctl new <TEMPLATE> [-l|--list] [-n <PROJECTNAME>] [-p <TARGETDIR>]
list all templates
console / webapi / mvc / grpc / xxl-job
generate folder by project name <PROJECTNAME>
output files to target directory.
yygctl new console -n demo -p /Projects
changed quick config setting package , github.com/yoyofx/yoyogo/pkg/configuration/{ nacos or apollo }
examples:
config := nacosConfig.RemoteConfig("config")
config := apolloConfig.RemoteConfig("config")
Integration distributed task of xxl-job
Nothing published for this version
Nothing published for this version
Nothing published for this version
add grpc hosting and client factory & LB
Nothing published for this version
nacos ,etcd, eureka with service discovery
1. console hosting 1. grpc hosting
Reconstruction datasource of mysql and redis
captcha image code & vallidation
fixed bugs: fixed the concurrency problem of session with cookies.
add session store by redis
fixed bugs: fixed the concurrency problem of session with cookies.
Implement redis client and interface
Add web.ApplicationBuilder.SetJsonSerializer for response by json encoder(Camel and Json)
fixed server.path config bugs. and then restructure server interface.
register http and fast server interface by IOC.
Nothing published for this version
add endpoint readiness and liveness
add endpoint readiness and liveness
mvc, find action by http method and action name
Nothing published for this version
server-path for mvc 3.fixed at simple demo no config ,that does not running
Add Http Server Path , such as /app/...
add --port command line fixed some bugs.
add --port command line fixed some bugs.
add service discovery : consul , eureka , nacos . add two balance,Random and Round. and unit test.
add service discovery : consul , eureka , nacos . add two balance,Random and Round. and unit test.
add view engine and DI add CORS and Configuration add email for smtp add server discovery of abstractions. add service register and get instances by N
add view engine and DI add CORS and Configuration add email for smtp add server discovery of abstractions. add service register and get instances by Nacos
Nothing published for this version
Nothing published for this version
1.优化查找Action能力,预缓控制器函数列表与执行能力,改进action调用方式和性能,集成reflectx并重构。 2.ActionFilter :Action过滤器,执行指定路由的Controller方法的拦截函数。 3.Mvc RouteTemplate :路由模板, 为Mvc模式路由提供
1.优化查找Action能力,预缓控制器函数列表与执行能力,改进action调用方式和性能,集成reflectx并重构。 2.ActionFilter :Action过滤器,执行指定路由的Controller方法的拦截函数。 3.Mvc RouteTemplate :路由模板, 为Mvc模式路由提供Url规则和ContrllerName与ActionName的匹配模式。
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.