Skip to content

Commit

Permalink
Add examples/env. Regenerate up examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Nov 16, 2024
1 parent 82a181a commit 9726388
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
14 changes: 14 additions & 0 deletions examples/env/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//go:generate tinygo build -o main.wasm -target=wasi -scheduler=none main.go

package main

import (
"fmt"
"os"
)

func main() {
for _, v := range os.Environ() {
fmt.Fprintln(os.Stdout, v)
}
}
Binary file added examples/env/main.wasm
Binary file not shown.
23 changes: 0 additions & 23 deletions examples/print-env/main.go

This file was deleted.

Binary file removed examples/print-env/main.wasm
Binary file not shown.

0 comments on commit 9726388

Please sign in to comment.