PackageTrack

Go modules · #2238

github.com/yoyofx/yoyogo

v1.8.7yoyofx/yoyogo

Release timeline

48 releases since 2020
202120222023202420252026

Releases

  1. v1.8.77 Feb 2024
    Release notes
    • 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}
    }
    Open source →
  2. v1.8.7-0.20240207091319-6924b33525457 Feb 2024pre-release

    Nothing published for this version

  3. v1.8.614 Dec 2023
    Release notes
    1. fixed bug for httpclient add header.
    2. update grpc / viper and others dependencies version .
    Open source →
  4. v1.8.6-0.20231214061954-b06cc2953fcf14 Dec 2023pre-release

    Nothing published for this version

  5. v1.8.56 May 2023
    Release notes
    • update golang.org/x/image to 0.5.0
    • update prometheus/client_golang to v1.15.1
    Open source →
  6. v1.8.423 Sept 2022
    Release notes

    Repair vulnerability of CVE-***

    Open source →
  7. v1.8.4-0.20220923093130-f30952a460f023 Sept 2022pre-release

    Nothing published for this version

  8. v1.8.32 Aug 2022
    Release notesOpen source →
  9. v1.8.231 May 2022
    Release notes

    Fixed Unhandled exception in gopkg.in/yaml.v3

    Open source →
  10. v1.8.125 Apr 2022
    Release notes

    Features

    1. 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")
    Open source →
  11. v1.8.1-0.20220422032213-47bf2394f8d822 Apr 2022pre-release

    Nothing published for this version

  12. v1.8.020 Apr 2022
    Release notesOpen source →
  13. v1.7.1110 Nov 2021
    Release notes

    Fixed bugs:

    • print all stack traces for console
    Open source →
  14. v1.7.1010 Oct 2021
    Release notes

    Fixed bugs:

    • web: fixed request body max bytes that when upload file, set config max_request_size for fasthttp MaxRequestBodySize.
    Open source →
  15. v1.7.918 Sept 2021

    Nothing published for this version

  16. v1.7.827 Aug 2021

    Nothing published for this version

  17. v1.7.8-0.20210803090413-e3586ad5ed8c3 Aug 2021pre-release

    Nothing published for this version

  18. v1.7.72 Aug 2021

    Nothing published for this version

  19. v1.7.620 Jul 2021

    Nothing published for this version

  20. v1.7.514 Jul 2021

    Nothing published for this version

  21. v1.7.48 Jul 2021

    Nothing published for this version

  22. v1.7.36 Jul 2021

    Nothing published for this version

  23. v1.7.28 Jun 2021

    Nothing published for this version

  24. v1.7.126 May 2021

    Nothing published for this version

  25. v1.7.1-0.20210513084527-f181f59680de13 May 2021pre-release

    Nothing published for this version

  26. v1.7.012 May 2021

    Nothing published for this version

  27. v1.6.910 May 2021

    Nothing published for this version

  28. v1.6.824 Apr 2021

    Nothing published for this version

  29. v1.6.8-0.20210421093634-0d33e01a719621 Apr 2021pre-release

    Nothing published for this version

  30. v1.6.713 Apr 2021

    Nothing published for this version

  31. v1.6.66 Apr 2021

    Nothing published for this version

  32. v1.6.52 Feb 2021

    Nothing published for this version

  33. v1.6.421 Jan 2021

    Nothing published for this version

  34. v1.6.315 Jan 2021

    Nothing published for this version

  35. v1.6.212 Jan 2021

    Nothing published for this version

  36. v1.6.117 Dec 2020

    Nothing published for this version

  37. v1.6.09 Dec 2020

    Nothing published for this version

  38. v1.5.98 Dec 2020

    Nothing published for this version

  39. v1.5.826 Nov 2020

    Nothing published for this version

  40. v1.5.725 Nov 2020

    Nothing published for this version

  41. v1.5.612 Nov 2020

    Nothing published for this version

  42. v1.5.59 Oct 2020

    Nothing published for this version

  43. v1.5.42 Sept 2020

    Nothing published for this version

  44. v1.5.327 Aug 2020

    Nothing published for this version

  45. v1.5.221 Aug 2020

    Nothing published for this version

  46. v1.5.112 Aug 2020

    Nothing published for this version

  47. v1.5.031 Jul 2020

    Nothing published for this version

  48. v1.4.10-0.20200624075804-d40622cecad124 Jun 2020pre-release

    Nothing published for this version