mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 09:49:12 +00:00
11 lines
369 B
Go
11 lines
369 B
Go
package workers
|
|
|
|
import "github.com/syumai/workers/internal/jsutil"
|
|
|
|
// Getenv gets a value of an environment variable.
|
|
// - https://developers.cloudflare.com/workers/platform/environment-variables/
|
|
// - Technically, this function is just an alias for js.Global().Get(env_name).String().
|
|
func Getenv(name string) string {
|
|
return jsutil.Global.Get(name).String()
|
|
}
|