github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/gojs/testdata/argsenv/main.go (about) 1 package argsenv 2 3 import ( 4 _ "flag" // to ensure flags parse 5 "fmt" 6 "os" 7 ) 8 9 func Main() { 10 fmt.Println() 11 for i, a := range os.Args { 12 fmt.Println("args", i, "=", a) 13 } 14 for i, e := range os.Environ() { 15 fmt.Println("environ", i, "=", e) 16 } 17 }