ffi-simple/main.go

package main

import "C"

//export Plus
func Plus(a, b C.int) C.int {
	return C.int(int32(a)+int32(b))
}

func main() {}