mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-05 04:09:07 +00:00
31 lines
958 B
Go
31 lines
958 B
Go
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
// 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"
|
|
)
|
|
|
|
// TerminalOutput represents the imported type alias "wasi:cli/terminal-stderr@0.2.0#terminal-output".
|
|
//
|
|
// See [terminaloutput.TerminalOutput] for more information.
|
|
type TerminalOutput = terminaloutput.TerminalOutput
|
|
|
|
// 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]) {
|
|
wasmimport_GetTerminalStderr(&result)
|
|
return
|
|
}
|