go-base

module
v0.0.0-...-0db7fb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2025 License: MIT

README

My Go boilerplate project

This is a personal boilerplate codebase for my Go projects.

Go version Go Reference Go Report Card

License Ask DeepWiki

Progress

  • VSCode IDE
    • Dev Container by Compose
    • Formatter
    • Linter
    • Tasks (tasks.json)
    • Debugger (launch.json)
  • Dockerfile
  • Docker Compose
    • GoApp
    • PostgreSQL
    • PgWeb
    • Valkey
    • RedisInsight
    • Grafana
    • Prometheus
    • Grafana Mimir
    • Grafana Alloy
    • Grafana Tempo
    • Grafana Pyroscope
    • Grafana Loki with Promtail
    • K6
    • openapi viewer (redocly/cli)
  • GoApp Base
    • cli by cobra
    • configuration by viper
    • sqlc
    • code genereate from sql by sqlc
    • connection pooling with pgxpool
    • golang-migrate
    • openapi spec
    • code generate from openapi spec by oapi-codegen
    • go-playground/validator
      • config validation
      • request body validation
        • custom validation error message
        • rfc7807 problem details
    • structed logs for Grafana Logs (Loki)
    • tracing with Grafana Tempo
    • profiling with Grafana Pyroscope
    • metrics with Grafana Alloy/Mimir or Prometheus
    • custom error
    • uuid v7 for effective indexing in rerational database
    • cors
    • rate limit
    • crean architecture based packaging
    • graceful shutdown
    • request timeout
    • version embedeed
    • リクエストボディサイズ制限
    • セキュリティヘッダー挿入
      • セキュリティに限らずカスタムヘッダ付与対応
  • Unittest
  • CI
    • Formatter (prettier, gofmt, shfmt, etc...)
    • Linter
    • Dependencies (renovate.json)

Directories

Path Synopsis
cmd
goapp command
cmd/goapp/main.go
cmd/goapp/main.go
pkg
api
pkg/api/handler.go
pkg/api/handler.go
api/openapi
pkg/api/openapi/generate.go
pkg/api/openapi/generate.go
config
pkg/config/config.go
pkg/config/config.go
db
operations
pkg/operations/handler.go
pkg/operations/handler.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL