You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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)
|
|
}
|