demo: call println, c.Printf, fmt.Println

This commit is contained in:
Li Jie
2025-02-14 17:18:32 +08:00
parent 5329f28580
commit 2d06dc5cfe

View File

@@ -1,11 +1,15 @@
package main package main
import ( import (
"fmt"
"github.com/goplus/llgo/c" "github.com/goplus/llgo/c"
) )
func main() { func main() {
c.Printf(c.Str("Hello world\n")) println("hello world by println")
fmt.Println("hello world by fmt.Println")
c.Printf(c.Str("Hello world by c.Printf\n"))
} }
/* Expected output: /* Expected output: