package main import ( "fmt" "log" "os" ) func main() { for _, v := range os.Environ() { fmt.Println(v) } giteaEnvFile, ok := os.LookupEnv("GITEA_ENV") if !ok { log.Fatalln("Gitea env file not found") } raw, err := os.ReadFile(giteaEnvFile) if err != nil { log.Fatalln("Gitea env file read error:", err) } fmt.Println(string(raw)) }