Docs / Ecosystems

Open documentation actions

Go

Go API, service, gRPC, CLI, logging, ORM, and auth-helper scaffolds.

Go projects use Go modules and Go-native templates. Choose Go options for HTTP services, gRPC, CLIs, logging, ORMs, and Go auth helpers.

Prerequisites

  • Go toolchain.
  • Git if you want repository initialization.

Scripted example

npm create better-fullstack@latest my-go-api -- \  --ecosystem go \  --go-web-framework gin \  --go-orm gorm \  --go-logging zap \  --go-auth jwt \  --go-api none \  --go-cli none \  --go-testing testify \  --go-realtime gorilla-websocket \  --go-message-queue nats \  --go-caching redis \  --go-config viper \  --go-observability opentelemetry \  --auth none \  --ai-docs none \  --version-channel stable \  --no-install \  --no-git

Go categories

CategoryValues
Web frameworkgin echo fiber chi none
ORMgorm sqlc ent none
APIgrpc-go gqlgen none
CLIcobra bubbletea urfave-cli none
Loggingzap zerolog slog logrus none
Go auth helperscasbin jwt goth none
Testing (multi-select)testify gomock none
Realtimegorilla-websocket centrifuge none
Message queuenats watermill none
Cachingredis ristretto none
Configviper koanf none
Observabilityopentelemetry none

Auth split

Go has two auth-related fields:

  • --go-auth casbin|jwt|none adds Go-native auth helpers.
  • --auth go-better-auth selects GoBetterAuth through the global auth field.

Other global auth providers such as Clerk, NextAuth, Stack Auth, Supabase Auth, and Auth0 are TypeScript-oriented and should not be presented as general Go scaffold support.

Generated behavior

  • go mod tidy is the install/verification path when install is enabled.
  • gRPC, Cobra, and Bubble Tea files are included only when selected.
  • Testing, realtime, message-queue, caching, config, and observability selections generate standalone packages under internal/ (plus example tests for testify/gomock).
  • gqlgen scaffolds graph/schema.graphqls + gqlgen.yml; run go generate ./graph to produce the GraphQL server code (mirrors the Ent code-generation flow).
  • goth registers OAuth providers from GOOGLE_CLIENT_ID/GITHUB_CLIENT_ID style env credentials.
  • AI instruction files are still available through --ai-docs, including --ai-docs none.