Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tuotoo/biu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.6
Choose a base ref
...
head repository: tuotoo/biu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.8
Choose a head ref
  • 8 commits
  • 11 files changed
  • 1 contributor

Commits on May 4, 2024

  1. chore: upgrade dependency packages and refactor route API validation

    - Upgrade `github.com/go-playground/validator/v10` from `v10.19.0` to `v10.20.0`
    - Upgrade `github.com/pelletier/go-toml/v2` from `v2.2.1` to `v2.2.2`
    - Upgrade `google.golang.org/protobuf` from `v1.33.0` to `v1.34.0`
    - Replace `validateStruct` function in `route_api.go` with `StructCtx` function.
    - Add `Get` function in struct `defaultValidator` in `route_api.go`.
    - Enable required struct validation when initializing validator in `lazyInit` function in `route_api.go`.
    - Call `StructCtx` instead of `validateStruct` in function `RouteAPI` in `route_api.go`.
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed May 4, 2024
    Configuration menu
    Copy the full SHA
    7a1dfa8 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. chore: refactor dependencies and improve code documentation

    - Corrected a typo in the comment for the `Bind` function in `box/ctx.go`.
    - Changed the `AutoGenPathDoc` variable from `false` to `true` in `go-restful-helper.go`.
    - Updated the versions of `github.com/gin-gonic/gin` and `github.com/fatih/color` dependencies in `go.mod`.
    - Removed `github.com/google/go-cmp` dependency from `go.mod`.
    - Updated the version of `github.com/valyala/fasthttp` and other indirect dependencies in `go.mod`.
    - Added `PathExpression` type alias in `internal/extras.go` and used it in the `NewPathExpression` function.
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed May 18, 2024
    Configuration menu
    Copy the full SHA
    2400b6f View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. chore: update dependencies and add error handling libraries

    - Updated `go-restful/v3` from version `v3.12.0` to `v3.12.1`
    - Updated `slog-multi` from version `v1.0.2` to `v1.0.3`
    - Updated `sonic` from version `v1.11.6` to `v1.11.7`
    - Updated `mimetype` from version `v1.4.3` to `v1.4.4`
    - Updated `go-json` from version `v0.10.2` to `v0.10.3`
    - Added `errwrap` version `v1.1.0`
    - Added `go-multierror` version `v1.1.1`
    - Updated `fasthttp` from version `v1.53.0` to `v1.54.0`
    - Updated `x/exp` from `v0.0.0-20240506185415-9bf2ced13842` to `v0.0.0-20240529005216-23cca8864a10`
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed May 29, 2024
    Configuration menu
    Copy the full SHA
    36ded49 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. feat: refactor internal modules and enhance name handling

    - Deleted file `internal/biu.s`.
    - Added new module `internal/camel_to_snake.go` that contains the function `CamelToSnake`. This function converts text from camel case to snake case.
    - Removed file `internal/extras.go` which contained a few functions and a type alias.
    - Introduced new module `internal/name_of_function.go` that provides the `NameOfFunction` function, which returns the short name of the function for documentation.
    - Created new file `internal/path_expression.go` implementing a PathExpression struct and related functions. These handle the conversion of a URL path into a regular expression for matching HTTP request paths and extracting path parameter values.
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    0d76f39 View commit details
    Browse the repository at this point in the history
  2. refactor: refactor httpexpect initialization in TestServer struct

    - Change the `httpexpect` initialization from `New` to `Default` in the `WithT` function of the `TestServer` struct in the go-restful-helper file.
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    1bb0512 View commit details
    Browse the repository at this point in the history
  3. refactor: refactor main.go and enhance error handling

    - Remove the import of "braces.dev/errtrace" from main.go
    - Replace the `getBar` method with a new version that accepts a struct as a parameter and includes a return function
    - Adjust the text of the 200 error message to specify the problem as an invalid number
    - Change `RouteTo` to `RouteAPI` in the `WebService` method
    - Remove the query parameter from error handling in the `WebService` method
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    5389bcf View commit details
    Browse the repository at this point in the history
  4. chore: update and modify package dependencies

    - Remove the dependency braces.dev/errtrace v0.3.0
    - Upgrade the version of github.com/go-playground/validator/v10 from v10.20.0 to v10.21.0
    - Remove the dependency github.com/mailru/easyjson v0.7.7 initially, and then re-add it indirectly
    - Upgrade the version of github.com/bytedance/sonic from v1.11.7 to v1.11.8
    - Upgrade the version of golang.org/x/exp from v0.0.0-20240529005216-23cca8864a10 to v0.0.0-20240531132922-fd00a4e0eefc
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    6d490db View commit details
    Browse the repository at this point in the history
  5. chore: update package dependencies and remove unused ones

    - Upgrade `slog-multi` package from `v1.0.3` to `v1.1.0`
    - Remove `errwrap` and `go-multierror` packages from project dependencies
    - Update versions of `x/crypto`, `x/exp`, `x/net`, `x/sys`, and `x/text` packages
    
    Signed-off-by: Jqs7 <[email protected]>
    jqs7 committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    5dbb314 View commit details
    Browse the repository at this point in the history
Loading