remove unused func mustLoad (#2)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
c4979fcc9d
commit
148449359e
9
main.go
9
main.go
@ -25,7 +25,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"google.golang.org/appengine"
|
"google.golang.org/appengine"
|
||||||
|
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -87,11 +86,3 @@ var vanityTmpl, _ = template.New("vanity").Parse(`<!DOCTYPE html>
|
|||||||
Nothing to see here; <a href="https://godoc.org/{{.Import}}">see the package on godoc</a>.
|
Nothing to see here; <a href="https://godoc.org/{{.Import}}">see the package on godoc</a>.
|
||||||
</body>
|
</body>
|
||||||
</html>`)
|
</html>`)
|
||||||
|
|
||||||
func mustLoad(key string, value *string) {
|
|
||||||
v := os.Getenv(key)
|
|
||||||
if v == "" {
|
|
||||||
log.Fatalf("missing %v env variable", key)
|
|
||||||
}
|
|
||||||
*value = v
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user