mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
26 lines
638 B
Go
26 lines
638 B
Go
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
// Package stdin represents the imported interface "wasi:cli/stdin@0.2.0".
|
|
package stdin
|
|
|
|
import (
|
|
"internal/cm"
|
|
"internal/wasi/io/v0.2.0/streams"
|
|
)
|
|
|
|
// InputStream represents the imported type alias "wasi:cli/stdin@0.2.0#input-stream".
|
|
//
|
|
// See [streams.InputStream] for more information.
|
|
type InputStream = streams.InputStream
|
|
|
|
// GetStdin represents the imported function "get-stdin".
|
|
//
|
|
// get-stdin: func() -> input-stream
|
|
//
|
|
//go:nosplit
|
|
func GetStdin() (result InputStream) {
|
|
result0 := wasmimport_GetStdin()
|
|
result = cm.Reinterpret[InputStream]((uint32)(result0))
|
|
return
|
|
}
|