summaryrefslogtreecommitdiff
path: root/data/datasource_env.go
diff options
context:
space:
mode:
Diffstat (limited to 'data/datasource_env.go')
-rw-r--r--data/datasource_env.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/data/datasource_env.go b/data/datasource_env.go
deleted file mode 100644
index e5bf180f..00000000
--- a/data/datasource_env.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package data
-
-import (
- "context"
- "strings"
-
- "github.com/hairyhenderson/gomplate/v4/env"
-)
-
-//nolint:unparam
-func readEnv(_ context.Context, source *Source, _ ...string) (b []byte, err error) {
- n := source.URL.Path
- n = strings.TrimPrefix(n, "/")
- if n == "" {
- n = source.URL.Opaque
- }
-
- b = []byte(env.Getenv(n))
- return b, nil
-}