From 4d4e2b1fe291d8ab5cc844a03f2a03e073a87a8c Mon Sep 17 00:00:00 2001 From: Wes Morgan Date: Tue, 7 Apr 2020 07:59:17 -0600 Subject: Add advanced usage note to config example --- _examples/config/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to '_examples/config') diff --git a/_examples/config/main.go b/_examples/config/main.go index 22dc447..5fb8fba 100644 --- a/_examples/config/main.go +++ b/_examples/config/main.go @@ -45,6 +45,10 @@ func main() { Info("origin remote: %+v", cfg.Remotes["origin"]) + // NOTE: The examples below show advanced usage of the config.Merged system, which should + // only be used as a last resort if the basic data defined on the Config struct don't + // suffice for what you're trying to do. + // Set local custom config param cfg.Merged.LocalConfig().AddOption("custom", format.NoSubsection, "name", "Local Name") -- cgit