feat: add zerolog and slog as Go logging options#138
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
a5bc84b to
3f2ccb2
Compare
3f2ccb2 to
17f62d0
Compare
Add two new logging libraries to the Go ecosystem alongside the existing zap option: - zerolog: zero-allocation JSON logger (github.com/rs/zerolog) - slog: Go 1.21+ stdlib structured logging (no external dependency) Both integrate with all Go web frameworks (gin, echo, fiber, chi), ORM options (gorm, sqlc), and the gRPC API layer. All 6 tested combinations compile successfully with go build.
17f62d0 to
806b1e4
Compare
Marve10s
added a commit
that referenced
this pull request
Apr 11, 2026
## New Tools (18 additions across all ecosystems) ### TypeScript - **Algolia** search engine (#125) - **Vercel** deployment with compat rules (#137) - **GraphQL Yoga + Pothos** API option (#139) - **Tauri** desktop app addon (#142) - **i18n** category: i18next + next-intl (#149) ### Rust - **tracing + env-logger** logging category (#126) - **anyhow + thiserror + eyre** error handling category (#135) - **Diesel** ORM (#140) - **Rocket** web framework (#143) - **moka + redis** caching category (#144) ### Go - **Fiber** web framework (#127) - **Chi** web framework (#133) - **zerolog + slog** logging (#138) - **Ent** ORM (#145) ### Python - **Flask** web framework (#128) - **Litestar** web framework (#136) - **authlib + jwt** auth category (#141) - **Strawberry** GraphQL category (#148) ## Infrastructure - Adding new tool options guideline (3,000+ lines, 7 files) - PR-aware smoke tests (--force-option, --force-non-none, --partition) - Strengthened CI: test:release expanded, smoke tests block PRs - Compatibility rules guideline with template parity checks - Meilisearch template fix for v0.57 API changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
"zerolog"and"slog"toGoLoggingSchemaalongside the existing"zap"optiongithub.com/rs/zerolog), fastest in benchmarks. Uses chained method calls:logger.Info().Str("key", "val").Msg("message")log/slog), no external dependency. Uses variadic key-value pairs:logger.Info("message", "key", "val")Files changed (12)
packages/types/src/schemas.ts"zerolog","slog"toGoLoggingSchemaenumpackages/types/src/option-metadata.tsapps/cli/src/prompts/go-ecosystem.tsapps/cli/src/index.tsapps/cli/src/helpers/core/post-installation.tspackages/template-generator/templates/go-base/go.mod.hbspackages/template-generator/templates/go-base/cmd/server/main.go.hbspackages/template-generator/src/processors/readme-generator.tsapps/web/src/lib/constant.tsapps/cli/test/go-language.test.tsapps/cli/test/template-snapshots.test.tsapps/cli/test/__snapshots__/template-snapshots.test.ts.snapTest plan
bun test apps/cli/test/cli-builder-sync.test.ts— 350 pass (2 pre-existing failures unrelated to this PR)bun test apps/cli/test/go-language.test.ts— 64 pass, 0 failbun test apps/cli/test/template-snapshots.test.ts— 64 pass, 0 failgo build ./...SUCCESSgo build ./...SUCCESSgo build ./...SUCCESSgo build ./...SUCCESSgo build ./...SUCCESSgo build ./...SUCCESSgithub.com/rs/zerologto go.mod"os"import guard widened from(eq goLogging "zap")to(ne goLogging "none")