[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread dummyedu
Very thanks, I got the library compiled after doing the fix. ( copy zsys_darwin_amd64.go as zsys_darwin_arm64.go ) I notice that this socket platform go files content is defined by platform and bit. so I think zsys_darwin_amd64.go and zsys_darwin_arm64.go should be same. The unlucky thing is

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread dummyedu
Thanks for the reply. But I can go get github.com/xtaci/kcp-go and use it without problem. So I need config something to support socket packing, Right? I am new for golang And feel no way to go when seeing the error and I didn't google the solution about how to fix it. It's very appreciated if

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-15 Thread dummyedu
I add a simple test case. // +build linux darwin freebsd package kcpgousage import ( "log" kcp "github.com/xtaci/kcp-go" ) func Test() { log.Printf("KCP SNMP:%+v", kcp.DefaultSnmp.Copy()) } go bind this file will have similor errors. 在 2017年10月16日星期一 UTC+8上午11:45:18,dumm...@gmail.com写道: >

[go-nuts] gomobile bind doesn't work for socket.

2017-10-15 Thread dummyedu
I want to use a go library( https://github.com/xtaci/kcp-go ) and compile it on ios platform. The library itself can't be totally exported because go-mobile type limitation. I write a custom package to use the library and export function to be used in ios platform. But gomobile bind give errors