Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ships a `version` subcommand. Grow it by adding subcommands (e.g. a `serve` comm
- `internal/cli/` — cobra root command, observability bootstrap + shutdown, subcommands.
- `internal/config/` — assembles `observability.Config` and builds the pillars (slog logging + noop
tracing/metrics/profiling by default). See `Config.NewPillars` for the upgrade path to real telemetry.
Two loaders use `platform-go/v7/config`: `Load` overlays `TEMPLATE_GO_`-prefixed environment
Two loaders use `platform-go/v10/config`: `Load` overlays `TEMPLATE_GO_`-prefixed environment
variables on the flag/default-seeded config, and `LoadFromFile` decodes a complete JSON config file
and then overlays the same environment variables. `Render` goes the other way: it validates typed
`Config` objects and writes them to disk (see `make configs`).
Expand Down
6 changes: 3 additions & 3 deletions cmd/tools/codegen/configs/environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"github.com/primandproper/template-go/internal/config"

"github.com/primandproper/platform-go/v7/observability"
"github.com/primandproper/platform-go/v7/observability/logging"
loggingcfg "github.com/primandproper/platform-go/v7/observability/logging/config"
"github.com/primandproper/platform-go/v10/observability"
"github.com/primandproper/platform-go/v10/observability/logging"
loggingcfg "github.com/primandproper/platform-go/v10/observability/logging/config"
)

// Each builder returns a fully-formed *config.Config for one environment. The
Expand Down
10 changes: 1 addition & 9 deletions config/localdev.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"observability": {
"profiling": {
"serviceName": ""
},
"logging": {
"serviceName": "template-go",
"level": "debug",
"provider": "slog"
},
"metrics": {
"serviceName": "",
"enabled": false
},
"tracing": {}
}
}
}
10 changes: 1 addition & 9 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"observability": {
"profiling": {
"serviceName": ""
},
"logging": {
"serviceName": "template-go",
"level": "info",
"provider": "slog"
},
"metrics": {
"serviceName": "",
"enabled": false
},
"tracing": {}
}
}
}
19 changes: 9 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module github.com/primandproper/template-go
go 1.26

require (
github.com/primandproper/platform-go/v7 v7.1.1
github.com/primandproper/platform-go/v10 v10.0.0
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
)

require (
cloud.google.com/go/auth v0.18.2 // indirect
cloud.google.com/go/auth v0.20.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
cloud.google.com/go/trace v1.11.7 // indirect
Expand All @@ -28,25 +28,24 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/ebitengine/purego v0.10.0 // indirect
github.com/felixge/httpsnoop v1.1.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/getsentry/sentry-go v0.43.0 // indirect
github.com/go-logr/logr v1.4.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.14 // indirect
github.com/googleapis/gax-go/v2 v2.19.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.17 // indirect
github.com/googleapis/gax-go/v2 v2.23.0 // indirect
github.com/grafana/pyroscope-go v1.2.7 // indirect
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/keith-turner/ecoji/v2 v2.0.2 // indirect
github.com/klauspost/compress v1.19.1 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
Expand All @@ -66,10 +65,10 @@ require (
github.com/samber/slog-common v0.20.0 // indirect
github.com/samber/slog-multi v1.7.1 // indirect
github.com/shirou/gopsutil/v4 v4.26.2 // indirect
github.com/shoenig/test v1.12.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/tklauser/go-sysconf v0.3.16 // indirect
github.com/tklauser/numcpus v0.11.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/bridges/otelslog v0.17.0 // indirect
Expand Down Expand Up @@ -102,8 +101,8 @@ require (
golang.org/x/text v0.40.0 // indirect
golang.org/x/time v0.15.0 // indirect
golang.org/x/tools v0.48.0 // indirect
google.golang.org/api v0.272.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478 // indirect
google.golang.org/api v0.287.1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260630182238-925bb5da69e7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260720211330-0afa2a65878a // indirect
google.golang.org/grpc v1.82.1 // indirect
google.golang.org/protobuf v1.36.11 // indirect
Expand Down
Loading