最近有个需求需要实现Golang取环境变量的功能,顺手查了下,实现的代码示例如下:

package main

import ( "fmt" "os" //我们要用到os包中的env)func main() {

阅读全文