mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 01:39:11 +00:00
update document of Getenv
This commit is contained in:
parent
1492adf888
commit
ccdb9cb7a4
4
env.go
4
env.go
@ -1,6 +1,8 @@
|
|||||||
package workers
|
package workers
|
||||||
|
|
||||||
// Getenv is an alias for js.Global().Get(env_name).
|
// 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).
|
||||||
func Getenv(name string) string {
|
func Getenv(name string) string {
|
||||||
return global.Get(name).String()
|
return global.Get(name).String()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user