summaryrefslogtreecommitdiff
path: root/docs/content/functions/general.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/functions/general.md')
-rw-r--r--docs/content/functions/general.md18
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/content/functions/general.md b/docs/content/functions/general.md
index 32aa6820..ab362573 100644
--- a/docs/content/functions/general.md
+++ b/docs/content/functions/general.md
@@ -5,24 +5,6 @@ menu:
parent: functions
---
-## `getenv`
-
-Exposes the [os.Getenv](https://golang.org/pkg/os/#Getenv) function.
-
-This is a more forgiving alternative to using `.Env`, since missing keys will
-return an empty string.
-
-An optional default value can be given as well.
-
-#### Example
-
-```console
-$ gomplate -i 'Hello, {{getenv "USER"}}'
-Hello, hairyhenderson
-$ gomplate -i 'Hey, {{getenv "FIRSTNAME" "you"}}!'
-Hey, you!
-```
-
## `bool`
Converts a true-ish string to a boolean. Can be used to simplify conditional statements based on environment variables or other text input.