mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
211425c3e9
Use go.bytecodealliance.org/cmd/wit-bindgen-go@v0.6.0
31 lines
934 B
Go
Executable File
31 lines
934 B
Go
Executable File
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
// Package terminalstdin represents the imported interface "wasi:cli/terminal-stdin@0.2.0".
|
|
//
|
|
// An interface providing an optional `terminal-input` for stdin as a
|
|
// link-time authority.
|
|
package terminalstdin
|
|
|
|
import (
|
|
"internal/cm"
|
|
terminalinput "internal/wasi/cli/v0.2.0/terminal-input"
|
|
)
|
|
|
|
// TerminalInput represents the imported type alias "wasi:cli/terminal-stdin@0.2.0#terminal-input".
|
|
//
|
|
// See [terminalinput.TerminalInput] for more information.
|
|
type TerminalInput = terminalinput.TerminalInput
|
|
|
|
// GetTerminalStdin represents the imported function "get-terminal-stdin".
|
|
//
|
|
// If stdin is connected to a terminal, return a `terminal-input` handle
|
|
// allowing further interaction with it.
|
|
//
|
|
// get-terminal-stdin: func() -> option<terminal-input>
|
|
//
|
|
//go:nosplit
|
|
func GetTerminalStdin() (result cm.Option[TerminalInput]) {
|
|
wasmimport_GetTerminalStdin(&result)
|
|
return
|
|
}
|