I would like to port a go program as a library by exporting some C APIs. In C it\'s common for a function to accept a buffer (pointer) as parameter (along with its size) and