v0.2.0 toml-only, harden concurrency and env export, dep updates
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
1 parent
3c35601179
commit
e08467bf38
42 files changed
+2533
-4274
No files matched your search
+2
-2
@@ -64,7 +64,7 @@ func main() {
|
||||
log.Println(" (Set environment variable APP_SERVER_PORT=8888)")
|
||||
|
||||
// Create a "target" struct. The builder will automatically populate this
|
||||
// and keep it updated when using `AsStruct()`
|
||||
// once; later `AsStruct()` calls return independent updated snapshots.
|
||||
target := &AppConfig{}
|
||||
|
||||
// Use the builder to chain multiple configuration options
|
||||
@@ -199,4 +199,4 @@ func printCurrentState(cfg *AppConfig, title string) {
|
||||
fmt.Printf(" Server Log Level: %s\n", cfg.Server.LogLevel)
|
||||
fmt.Printf(" Feature Flags: %v\n", cfg.FeatureFlags)
|
||||
fmt.Println(" --------------------------------------------------")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user