mirror of
https://github.com/goplus/llgo.git
synced 2025-09-27 03:56:05 +08:00
17 lines
223 B
Go
17 lines
223 B
Go
package main
|
|
|
|
import "github.com/goplus/lib/c"
|
|
|
|
func myprint(s *c.Char) {
|
|
for i := 0; i < int(c.Strlen(s)); i++ {
|
|
WriteByte(byte(c.Index(s, i)))
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
for {
|
|
myprint(c.Str("hello world"))
|
|
sleep(1)
|
|
}
|
|
}
|