Clone in a terminal:
package foo

/*
 #cgo LDFLAGS: -lmy-c-lib

 #include "my-c-lib.h"
 #include <stdlib.h>
*/
import "C"
import "unsafe"

func MyBye(msg string) {
	c_msg := C.CString(msg)
	defer C.free(unsafe.Pointer(c_msg))
	C.my_c_bye(c_msg)
}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112