From f50a4e6e4ec3a614cb9bb542ab96a4ce67337461 Mon Sep 17 00:00:00 2001 From: rwxrob Date: Sat, 23 Apr 2022 10:22:49 -0400 Subject: [PATCH] Add SoftInit to Configurer and Vars --- bonzai.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bonzai.go b/bonzai.go index a78452e..1598757 100644 --- a/bonzai.go +++ b/bonzai.go @@ -36,6 +36,7 @@ package bonzai // needing a trim. type Configurer interface { Init() error // must initialize a new configuration + SoftInit() error // must init if not yet initialized Data() (string, error) // must return full YAML Print() error // must print full YAML to os.Stdout Edit() error // must open full YAML in local editor @@ -57,6 +58,7 @@ type Configurer interface { // value are ignored.) This is the fastest format to read and parse. type Vars interface { Init() error // initialize completely new cache + SoftInit() error // initialize if not already initialized Data() string // k=v with \r and \n escaped in v Print() // (printed) Get(key string) string // accessor