mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
0ffe5ac2fa
- Explicitly list all test cases. This makes it possible to store
tests in testdata/ that aren't tested on all platforms.
- Clean up filesystem and env test, by running them in a subtest and
deduplicating some code and removing the additionalArgs parameter.
15 lines
158 B
Go
15 lines
158 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
println(os.Getenv("ENV1"))
|
|
v, ok := os.LookupEnv("ENV2")
|
|
if !ok {
|
|
panic("ENV2 not found")
|
|
}
|
|
println(v)
|
|
}
|