mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-20 15:18:09 +08:00
16 lines
204 B
Go
16 lines
204 B
Go
package helper
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func GetEnv() {
|
|
envs := os.Environ()
|
|
for _, env := range envs {
|
|
cache := strings.Split(env, "=")
|
|
fmt.Printf("%v = %v\n", cache[0], cache[1])
|
|
}
|
|
}
|