From 6a9589752cbda9118a6ff7019e78c385b2a09bf3 Mon Sep 17 00:00:00 2001 From: syumai Date: Wed, 3 Aug 2022 00:00:54 +0900 Subject: [PATCH] fix env docs --- env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.go b/env.go index 91c247a..6294cef 100644 --- a/env.go +++ b/env.go @@ -2,7 +2,7 @@ package workers // Getenv gets an environment variable set to global object. // * https://developers.cloudflare.com/workers/platform/environment-variables/ -// * Technically, this function is just an alias for js.Global().Get(env_name). +// * Technically, this function is just an alias for js.Global().Get(env_name).String(). func Getenv(name string) string { return global.Get(name).String() }