demo: call println, c.Printf, fmt.Println
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user