Mastering-Go-Second-Edition/ch02/cGo.go
2019-01-10 09:18:16 +02:00

14 lines
222 B
Go

package main
//#include <stdio.h>
//void callC() {
// printf("Calling C code!\n");
//}
import "C"
import "fmt"
func main() {
fmt.Println("A Go statement!")
C.callC()
fmt.Println("Another Go statement!")
}