Skip to content

Instantly share code, notes, and snippets.

@BenLubar
Created July 13, 2018 15:37
Show Gist options
  • Save BenLubar/851d3de63699f50e76ef0f866a0049a3 to your computer and use it in GitHub Desktop.
Save BenLubar/851d3de63699f50e76ef0f866a0049a3 to your computer and use it in GitHub Desktop.
#include "example.h"
#include "_cgo_export.h"
void foo()
{
bar();
}
package example
/*
#include "example.h"
*/
import "C"
// Foo is an example that does nothing in a very expensive way.
func Foo() {
C.foo()
}
//export bar
func bar() {
// do nothing
}
#pragma once
void foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment