14 lines
222 B
Go
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!")
|
|
}
|