mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
22 lines
366 B
Go
22 lines
366 B
Go
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
package main
|
|
|
|
import "C"
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
_"gobook.examples/ch2-09-so-and-lib/make-clib-from-multi-pkg/number"
|
|
)
|
|
|
|
func main() {
|
|
println("Done")
|
|
}
|
|
|
|
//export goPrintln
|
|
func goPrintln(s *C.char) {
|
|
fmt.Println("goPrintln:", C.GoString(s))
|
|
}
|