From 77760c98a145f010d99ad3c2deefc188d2f79c6b Mon Sep 17 00:00:00 2001 From: winsdominoes Date: Mon, 3 Jun 2024 16:36:26 +0700 Subject: [PATCH] test --- deez/calc.h | 3 +++ deez/main.go | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 deez/calc.h create mode 100644 deez/main.go 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)) +}