fix env docs

This commit is contained in:
syumai 2022-08-03 00:00:54 +09:00
parent d8de7fb030
commit 6a9589752c

2
env.go
View File

@ -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()
}