This commit is contained in:
Win 2024-06-03 16:36:26 +07:00
parent 20debe15f4
commit 77760c98a1
2 changed files with 17 additions and 0 deletions

3
deez/calc.h Normal file
View File

@ -0,0 +1,3 @@
int addition(int i, int j) {
return i + j;
}

14
deez/main.go Normal file
View File

@ -0,0 +1,14 @@
package main
/*
#include <stdio.h>
#include <math.h>
#include <calc.h>
*/
import "C"
import "fmt"
func main() {
fmt.Println(C.addition(1, 2))
}