env

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Overview

Package utils

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string) string

GetEnv 获取环境变量

func GetEnvs

func GetEnvs(keys ...string) []string

GetEnvs 获取多个环境变量

func IsEnvEqual

func IsEnvEqual(env, dst string) bool

IsEnvEqual 比较环境变量

func SetEnvContext

func SetEnvContext(c context.Context, key, val string) context.Context

SetEnvContext 设置上下文环境变量

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL