Skip to content

Instantly share code, notes, and snippets.

@ermiv
ermiv / cgo1.go
Created March 20, 2024 04:31 — 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() {