package main /* #cgo CFLAGS: -DWIN32 -ID:/pg18headers -ID:/pg18headers/port/win32 #cgo LDFLAGS: -LD:/pg18lib #include "postgres.h" #include "fmgr.h" // Forward declare the C function so cgo compiles add_two.c too. extern void init_add_two(); */ import "C" //export Adder func Adder(a C.int32) C.int32 { return a + 3 } func main() {}