mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-10 22:49:30 +00:00
wasi preview 2 support (#4027)
* all: wasip2 support Co-authored-by: Randy Reddig <randy.reddig@fastly.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// 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 (
|
||||
"github.com/ydnar/wasm-tools-go/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])
|
||||
Reference in New Issue
Block a user