- Install the
wit-bindgen-clicrate viacargo install wit-bindgen-cli. - Check out the wasi:cli repo.
- Run
wit-bindgen c --world command witin thewasi-clidirectory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dependabot Go modules | |
| on: | |
| pull_request: | |
| paths: | |
| - "go.mod" | |
| - "go.sum" | |
| jobs: | |
| dependabot: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Swift | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/swift.yaml" | |
| - "**.swift" | |
| - "**/Package.resolved" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "net" | |
| "os" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| "unicode" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // swift-tools-version:5.3 | |
| import PackageDescription | |
| let package = Package( | |
| name: "Packages", | |
| platforms: [ | |
| .macOS(.v10_15), | |
| .iOS(.v13), | |
| ], | |
| products: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package priority | |
| import ( | |
| "context" | |
| "sync/atomic" | |
| ) | |
| type Priority int | |
| const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| func main() { | |
| var s string | |
| var _ = s == nil // true | |
| var i int | |
| var _ = i == nil // true | |
| var v struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package platform | |
| import ( | |
| "os" | |
| "path/filepath" | |
| ) | |
| // ExecutableDir returns the directory containing the current executable, | |
| // or when an error occurs, the current working directory. | |
| func ExecutableDir() (string, error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package poll | |
| import ( | |
| "unsafe" | |
| "github.com/ydnar/wasm-tools-go/wasm/cm" | |
| ) | |
| // Interface implements WIT interface "wasi:io/poll". | |
| type Interface interface { |