mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
fix ch2-1 typo
This commit is contained in:
parent
604106f3ea
commit
aba58cf8c9
@ -150,6 +150,8 @@ void SayHello(/*const*/ char* s);
|
|||||||
```go
|
```go
|
||||||
// hello.go
|
// hello.go
|
||||||
package main
|
package main
|
||||||
|
import "C"
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
//export SayHello
|
//export SayHello
|
||||||
func SayHello(s *C.char) {
|
func SayHello(s *C.char) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user