You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
203 B

package main
import (
"fmt"
"github.com/joho/godotenv"
"os"
)
// 失败!
func main() {
k := godotenv.Load()
if k != nil {
fmt.Println(k)
}
dbUser := os.Getenv("aaa")
fmt.Print(dbUser)
}