github.com/giovannyortegon/go@v0.0.0-20220115155912-8890063f5bdd/src/BlackHatGo/Chap01/CallsC/callingC.go (about) 1 package main 2 3 /* 4 #include<stdio.h> 5 void callC() { 6 printf("Calling C code!\n"); 7 } 8 */ 9 import "C" 10 import "fmt" 11 12 func main() { 13 fmt.Println("A Go Statement!") 14 C.callC() 15 fmt.Println("Another Go Statement!") 16 }