Not sure what you mean, the following runs fine with go tip:package main// #include <stddef.h>// void foo(int *x) { *x = 17; }// void bar(size_t *y) { *y = 4711; }import "C"import "fmt"func main() {var x int32var y uint64C.foo((*C.int)(&x))C.bar((*C.size_t)(&y))fmt.Println(x, y)}