Tags: gin-contrib/multitemplate
Tags
ci: update GolangCI configurations and GitHub workflow integration - Update golangci-lint action from v5 to v7 - Specify version v2.0 for golangci-lint in GitHub workflow - Add `version: "2"` to `.golangci.yml` - Replace `enable-all` and `disable-all` with `default: none` in `.golangci.yml` - Remove specific linters (`gofmt`, `goimports`, `gosimple`, `stylecheck`, `typecheck`) from `.golangci.yml` - Add linter exclusions and presets to `.golangci.yml` - Add formatter configurations for `gofmt` and `goimports` in `.golangci.yml` - Remove `run: timeout: 3m` from `.golangci.yml` Signed-off-by: appleboy <[email protected]>
refactor: refactor template methods and structs for improved readability - Refactor `buildTemplate` method to separate template creation and delimiter setting for better readability - Reformat `AddFromStringsFuncsWithOptions` and `AddFromFilesFuncsWithOptions` functions to use multi-line parameters for improved readability - Group related struct fields in `templateBuilder` initialization for better code organization - Convert type definitions to a single `type` block in `multitemplate.go` for better structure - Reformat `AddFromStringsFuncsWithOptions` and `AddFromFilesFuncsWithOptions` methods in `multitemplate.go` to use multi-line parameters and template creation for better readability - Update `Renderer` interface to use multi-line parameters for `AddFromStringsFuncsWithOptions` and `AddFromFilesFuncsWithOptions` methods for improved readability Signed-off-by: Bo-Yi Wu <[email protected]>
ci: expand OS support in GitHub Actions workflow for Go (#67) * ci: expand OS support in GitHub Actions workflow for Go - Add macOS and Windows to the OS matrix in the GitHub Actions workflow for Go - Specify Go build cache locations for Windows and macOS Signed-off-by: appleboy <[email protected]> * ci: improve CI workflow and API integration - Remove Windows build job from GitHub Actions workflow Signed-off-by: appleboy <[email protected]> --------- Signed-off-by: appleboy <[email protected]>
chore: update indirect dependencies in go.mod - Update several indirect dependencies in `go.mod`, including `sonic`, `base64x`, `iasm`, `validator`, `go-toml`, `arch`, `crypto`, `net`, `sys`, `text`, and `protobuf` to newer versions. Signed-off-by: Bo-Yi Wu <[email protected]>
feat(embed): Implement template loading from embedded filesystem (#48) * Implement template loading from fs.FS * Use os.DirFS instead of embed.FS for tests * Remove go versions 1.14 and 1.15 from test workflow --------- Co-authored-by: Bo-Yi Wu <[email protected]>