aboutsummaryrefslogtreecommitdiff
path: root/script_example_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-03-09 00:06:18 +0700
committerShulhan <ms@kilabit.info>2021-03-09 00:06:18 +0700
commit81c4b91865813b29292afc01de57d81e7bbf33fb (patch)
treea6318a2c86b674a498ed3200a37ecae2017c6e04 /script_example_test.go
parent1244e56cee5c3ee9f184ecb47f2c606a5bb4bf5c (diff)
downloadawwan-81c4b91865813b29292afc01de57d81e7bbf33fb.tar.xz
all: unexport the environment type
This type is not usable if its exported. So, let unexport them to let user focus on Command.
Diffstat (limited to 'script_example_test.go')
-rw-r--r--script_example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/script_example_test.go b/script_example_test.go
index 01b9c1a..e8407bc 100644
--- a/script_example_test.go
+++ b/script_example_test.go
@@ -20,7 +20,7 @@ multiline\
command {{.Val "section::key"}};\
end;
`
- env := &Environment{}
+ env := &environment{}
err := env.parse([]byte(envContent))
if err != nil {
log.Fatal(err)