Skip to content

Commit

Permalink
llgo: hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed May 17, 2024
1 parent 9b76eb9 commit e7a2380
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cl/internal/llgo-hello/hello.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package hello

import "github.com/goplus/llgo/c"

func Main() {
c.Printf(c.Str("Hello world\n"))
}
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/fsnotify/fsnotify v1.7.0
github.com/goplus/c2go v0.7.26
github.com/goplus/gogen v1.15.3-0.20240424153048-0d40138c65a5
github.com/goplus/llgo v0.8.2
github.com/goplus/mod v0.13.10
github.com/qiniu/x v1.13.10
golang.org/x/tools v0.21.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/goplus/c2go v0.7.26 h1:YmihhrbUC6+5RmdRqYzul4igfsyofwj4mM2iwkTTOuc=
github.com/goplus/c2go v0.7.26/go.mod h1:ePAStubV/ls8mmdPGQo6VfADTVd46rKuBemE4zzBDnA=
github.com/goplus/gogen v1.15.3-0.20240424153048-0d40138c65a5 h1:OpVAkQH6VJaP4ooZgqeETcgW1Ac9wxLXej0Jl+PlxCs=
github.com/goplus/gogen v1.15.3-0.20240424153048-0d40138c65a5/go.mod h1:92qEzVgv7y8JEFICWG9GvYI5IzfEkxYdsA1DbmnTkqk=
github.com/goplus/llgo v0.8.2 h1:8IZQXlDpPHM8C84fATLJGmDkEkfrbn2kAikpNUeKBVE=
github.com/goplus/llgo v0.8.2/go.mod h1:FZVAPoRTpAuQIizMP7wcZYcZ25Ft+GUX6WhD23GcFhc=
github.com/goplus/mod v0.13.10 h1:5Om6KOvo31daN7N30kWU1vC5zhsJPM+uPbcEN/FnlzE=
github.com/goplus/mod v0.13.10/go.mod h1:HDuPZgpWiaTp3PUolFgsiX+Q77cbUWB/mikVHfYND3c=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
Expand Down
3 changes: 3 additions & 0 deletions testdata/_llgo/hello/hello.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import "github.com/goplus/llgo/c"

c.Printf c.Str("Hello world\n")

0 comments on commit e7a2380

Please sign in to comment.