github.com/goplus/llgo@v0.8.3/cl/_testrt/concat/in.go (about) 1 package main 2 3 import ( 4 "github.com/goplus/llgo/internal/runtime/c" 5 ) 6 7 func concat(args ...string) (ret string) { 8 for _, v := range args { 9 ret += v 10 } 11 return 12 } 13 14 func info(s string) string { 15 return "" + s + "..." 16 } 17 18 func main() { 19 result := concat("Hello", " ", "World") 20 c.Fprintf(c.Stderr, c.Str("Hi, %s\n"), c.AllocaCStr(result)) 21 }