go: trying to compile

This commit is contained in:
Gijs Van Laer 2019-09-03 10:22:41 -04:00
parent 7b692994f1
commit ebfafea798
2 changed files with 17 additions and 0 deletions

10
go/libbolt.go Normal file
View File

@ -0,0 +1,10 @@
package _go
// #cgo darwin CFLAGS: -D LIBSOLV_INTERNAL -I /Library/Developer/CommandLineTools/usr/include/c++/v1 -I ../include -D LD_LIBRARY_PATH=./target/release/
// #cgo darwin LDFLAGS: -L ./target/release/ -llibbolt
// #include <libbolt.h>
import "C"
func main() {
C.ffishim_bidirectional_channel_setup("testChannel", 0)
}

7
go/libbolt_test.go Normal file
View File

@ -0,0 +1,7 @@
package _go
import "testing"
func Test_main(t *testing.T) {
main()
}