This is a simple web service that uses Pkl to drive configuration.
| Directory | Description |
|---|---|
|
Pkl configuration sources |
|
Generated Go sources from Pkl |
|
Internal Go files |
|
Server entrypoint |
To generate new Pkl sources for the AppConfig module, run:
go tool pkl-gen-go pkl/AppConfig.pklOr, alternatively, with go generate (see generate.go):
go generate ./...The code generator detects that the Go package for AppConfig is
github.com/apple/pkl-go-examples/simple/gen/appconfig, and the Go module
name is github.com/apple/pkl-go-examples (via the go.mod file), and
therefore places generated sources in gen/appconfig.