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.
|
package coreutils |
|
|
|
import ( |
|
"fmt" |
|
"os" |
|
) |
|
|
|
// PrintStrings prints each string in strings on a new line |
|
func PrintStrings(strings []string) { |
|
for _, str := range strings { |
|
fmt.Println(str) |
|
} |
|
} |
|
|
|
// PrintEnv prints all environment variables |
|
func PrintEnv() { |
|
PrintStrings(os.Environ()) |
|
}
|
|
|