Skip to content

Instantly share code, notes, and snippets.

@zelenko
zelenko / cgo1.go
Created August 11, 2018 02:07 — forked from tejainece/cgo1.go
Examples of calling C code from Golang
package main
//#include<stdio.h>
//void inC() {
// printf("I am in C code now!\n");
//}
import "C"
import "fmt"
func main() {