mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 04:49:04 +00:00
87a8aafc4f
- add internal/wasm-tools/go.mod file to depend on wasm-tools-go
- copy package cm into src/internal/cm
- remove wasm-tools-go "vendor" submodule
internal/tools: fix typo
go.{mod,sum}, internal/tools: add wit-bindgen-go to tools
GNUmakefile: use go run for wit-bindgen-go
GNUmakefile: add tools target to go:generate tools binaries in internal/tools
GNUmakefile: add .PHONY for lint and spell
GNUmakefile, internal/cm: vendor package cm into internal/cm
go.{mod,sum}: update wasm-tools-go to v0.1.4
internal/wasi: use internal/cm package
remove submodule src/vendor/github.com/ydnar/wasm-tools-go
GNUmakefile: add comment documenting what wasi-cm target does
go.{mod,sum}: remove toolchain; go mod tidy
go.mod: revert to Go 1.19
go.mod: go 1.19
go.{mod,sum}, internal/{tools,wasm-tools}: revert root go.mod file to go1.19
Create a wasm-tools specific module that can require go1.22 for wasm-tools-go.
32 lines
939 B
Go
32 lines
939 B
Go
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
//go:build !wasip1
|
|
|
|
// Package terminalstderr represents the imported interface "wasi:cli/terminal-stderr@0.2.0".
|
|
//
|
|
// An interface providing an optional `terminal-output` for stderr as a
|
|
// link-time authority.
|
|
package terminalstderr
|
|
|
|
import (
|
|
"internal/cm"
|
|
terminaloutput "internal/wasi/cli/v0.2.0/terminal-output"
|
|
)
|
|
|
|
// GetTerminalStderr represents the imported function "get-terminal-stderr".
|
|
//
|
|
// If stderr is connected to a terminal, return a `terminal-output` handle
|
|
// allowing further interaction with it.
|
|
//
|
|
// get-terminal-stderr: func() -> option<terminal-output>
|
|
//
|
|
//go:nosplit
|
|
func GetTerminalStderr() (result cm.Option[terminaloutput.TerminalOutput]) {
|
|
wasmimport_GetTerminalStderr(&result)
|
|
return
|
|
}
|
|
|
|
//go:wasmimport wasi:cli/terminal-stderr@0.2.0 get-terminal-stderr
|
|
//go:noescape
|
|
func wasmimport_GetTerminalStderr(result *cm.Option[terminaloutput.TerminalOutput])
|