Source

talks / import-c / callback / callback.c

1
2
3
4
5
6
7
8
#include <stdio.h>
#include "_cgo_export.h"

void
c_func() {
	printf("Calling Go\n");
	go_func();
}