demo: getcwd; abi.TypeName fix: error interface is public

This commit is contained in:
xushiwei
2024-06-19 23:58:20 +08:00
parent 3ead4b4d4b
commit 6cb42a4251
2 changed files with 13 additions and 1 deletions

11
_demo/getcwd/getcwd.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/c/os"
)
func main() {
wd := os.Getcwd(c.Alloca(os.PATH_MAX), os.PATH_MAX)
c.Printf(c.Str("cwd: %s\n"), wd)
}