mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
9cb263479c
* all: wasip2 support Co-authored-by: Randy Reddig <randy.reddig@fastly.com>
28 lines
766 B
Go
28 lines
766 B
Go
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
//go:build !wasip1
|
|
|
|
// Package preopens represents the imported interface "wasi:filesystem/preopens@0.2.0".
|
|
package preopens
|
|
|
|
import (
|
|
"github.com/ydnar/wasm-tools-go/cm"
|
|
"internal/wasi/filesystem/v0.2.0/types"
|
|
)
|
|
|
|
// GetDirectories represents the imported function "get-directories".
|
|
//
|
|
// Return the set of preopened directories, and their path.
|
|
//
|
|
// get-directories: func() -> list<tuple<descriptor, string>>
|
|
//
|
|
//go:nosplit
|
|
func GetDirectories() (result cm.List[cm.Tuple[types.Descriptor, string]]) {
|
|
wasmimport_GetDirectories(&result)
|
|
return
|
|
}
|
|
|
|
//go:wasmimport wasi:filesystem/preopens@0.2.0 get-directories
|
|
//go:noescape
|
|
func wasmimport_GetDirectories(result *cm.List[cm.Tuple[types.Descriptor, string]])
|