(key string)
| 14 | } |
| 15 | |
| 16 | func getEnv(key string) (string, error) { |
| 17 | value := os.Getenv(key) |
| 18 | |
| 19 | if value == "" { |
| 20 | return "", fmt.Errorf("missing variable %s", key) |
| 21 | } |
| 22 | |
| 23 | return value, nil |
| 24 | } |
| 25 | |
| 26 | func main() { |
| 27 | if len(os.Args) < 2 { |
no outgoing calls
no test coverage detected