diff --git a/deez/calc.h b/deez/calc.h new file mode 100644 index 0000000..e7d5545 --- /dev/null +++ b/deez/calc.h @@ -0,0 +1,3 @@ +int addition(int i, int j) { + return i + j; +} diff --git a/deez/main.go b/deez/main.go new file mode 100644 index 0000000..0b79971 --- /dev/null +++ b/deez/main.go @@ -0,0 +1,14 @@ +package main + +/* +#include +#include + +#include +*/ +import "C" +import "fmt" + +func main() { + fmt.Println(C.addition(1, 2)) +}