26 lines
697 B
Go
26 lines
697 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 (
|
||
|
"gitea.rebus.ninja/lore/go-nats-client/gen/wasi/io/streams"
|
||
|
"github.com/bytecodealliance/wasm-tools-go/cm"
|
||
|
)
|
||
|
|
||
|
// 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
|
||
|
}
|