[go-nuts] [golang/x/mobile] Can gomobile support build ios and android c static/dynamic lib.

2017-04-12 Thread hui zhang
Can gomobile support build ios and android c static/dynamic lib. For some people do not link it to objc and java directly It link with other C/C++ lib to form a common library , and then link to objc and java. For example , in cocos2dx , user use c++ to code. But some logic they need go .

Re: [go-nuts] swig and go

2017-04-12 Thread Ian Lance Taylor
On Wed, Apr 12, 2017 at 5:51 PM, larry104 wrote: > I added a .go file - now go build complains about the incorrect swig version > - The system installed swig version is 3.0.2 but I have 3.0.12 installed in > linked in my bin. How can I tell go build to use this version instead? The go tool will

Re: [go-nuts] swig and go

2017-04-12 Thread larry104
I added a .go file - now go build complains about the incorrect swig version - The system installed swig version is 3.0.2 but I have 3.0.12 installed in linked in my bin. How can I tell go build to use this version instead? -- You received this message because you are subscribed to the Google

Re: [go-nuts] swig and go

2017-04-12 Thread larry104
The .go file can just be a dummy file with no real purpose? On Wednesday, April 12, 2017 at 5:06:35 PM UTC-7, Ian Lance Taylor wrote: > > On Wed, Apr 12, 2017 at 4:42 PM, larry104 > wrote: > > > > I seems I need to manually run swig (swig -go -cgo -c++ -intgosize 64 > > mylib.i) - it does not

Re: [go-nuts] swig and go

2017-04-12 Thread Ian Lance Taylor
On Wed, Apr 12, 2017 at 4:42 PM, larry104 wrote: > > I seems I need to manually run swig (swig -go -cgo -c++ -intgosize 64 > mylib.i) - it does not seem that 'go build' picks up the .i or .swig file. > Then I need to call 'go tool cgo mylib.go'. This creates an _obj directory > with a bunch of fil

Re: [go-nuts] swig and go

2017-04-12 Thread Christopher Nielsen
For c++, your swig file needs to have a swigcxx extension for the go tool to run swig properly. On Apr 12, 2017 4:42 PM, "larry104" wrote: I seems I need to manually run swig (swig -go -cgo -c++ -intgosize 64 mylib.i) - it does not seem that 'go build' picks up the .i or .swig file. Then I need

Re: [go-nuts] swig and go

2017-04-12 Thread larry104
I seems I need to manually run swig (swig -go -cgo -c++ -intgosize 64 mylib.i) - it does not seem that 'go build' picks up the .i or .swig file. Then I need to call 'go tool cgo mylib.go'. This creates an _obj directory with a bunch of files. After that I tried calling 'go build'. This errors o

[go-nuts] Re: Clearer float parsing API

2017-04-12 Thread Uli Kunitz
I don't think that is a good idea because to stay consistent multiple versionw of ParseUint, ParseInt, FormatInt and FormatUint would have to be added to the package. Those functions would make the interface of package strconv much larger. Nobody stops you though to define your private parseFlo

Re: [go-nuts] time.Parse is failing to parse a date generated with time.Format using time.UnixDate as layout on 'empty' timezone

2017-04-12 Thread Ian Lance Taylor
On Wed, Apr 12, 2017 at 10:52 AM, wrote: > > time.Parse is failing to parse a date generated with time.Format using > time.UnixDate as layout here (if I use the similar). Yes, time.UnixDate only really works if you have timezone data on your system that describes the current time zone. I sugges

[go-nuts] time.Parse is failing to parse a date generated with time.Format using time.UnixDate as layout on 'empty' timezone

2017-04-12 Thread henriquevicente
Hi, time.Parse is failing to parse a date generated with time.Format using time.UnixDate as layout here (if I use the similar). I have not ditched so much in the code, but it appears it is considering the timezone to be "" and trying to use the -03 value as offset (see example below). And I am

[go-nuts] Clearer float parsing API

2017-04-12 Thread Andrew Pennebaker
Could we separate ParseFloat() into distinct signatures for the corresponding float widths? Parsing a 32-bit float shouldn't be returned as a 64-bit float :/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and sto

[go-nuts] Re: [video] Golang's Realtime Garbage Collector

2017-04-12 Thread mhhcbon
hi, it was very interesting and awesome! thanks a lot for the sharing. On Wednesday, April 12, 2017 at 3:50:08 PM UTC+2, Will Sewell wrote: > > My colleague Jim, and I, presented this video on Go's realtime GC at The > Realtime Guild in London. In the first half of the talk, Jim steps through

[go-nuts] Re: [ANN] Darwin/ARM (aka. iOS) port of Go is READY

2017-04-12 Thread mhhcbon
Hi, It look awesome! I d like very much to give it a try, can you clarify the procedure please ? I was tempted to run this https://bitbucket.org/minux/goios/wiki/Home through vagrant and post the result. But seems outdated ? On Friday, January 6, 2012 at 10:05:34 PM UTC+1, minux wrote: > > Hi al

[go-nuts] Re: [ANN] Enhanced Markdown template processor(emd): helper to generate README file

2017-04-12 Thread mhhcbon
Hi, I wanted to announce this update of emd Several updates summarized here, https://github.com/mh-cbon/emd/releases/tag/0.0.9-beta Its a beta because you might be debugging few small corner cases parsing issues, sorry >.< You can check the newly resulting md https://github.com/mh-cbon/emd#emd

[go-nuts] Re: Problem compiling go from source code in Alpine Linux powerpc64

2017-04-12 Thread Dave Cheney
This is the procedure I've used to bootstrap the toolchain on a platform that is not supported by Go 1.4 https://dave.cheney.net/2015/10/16/bootstrapping-go-1-5-on-non-intel-platforms On Thursday, 13 April 2017 00:03:56 UTC+10, Roberto Oliveira wrote: > > I did what you suggested. > > I cross co

[go-nuts] Re: Problem compiling go from source code in Alpine Linux powerpc64

2017-04-12 Thread Roberto Oliveira
I did what you suggested. I cross compiled a helloworld.go in Alpine Linux x86_64 (env GOOS=linux GOARCH=ppc64le go build helloworld.go), scp the binary to an Alpine Linux ppc64le and I run it, the binary run fine. -- You received this message because you are subscribed to the Google Groups "

[go-nuts] [video] Golang's Realtime Garbage Collector

2017-04-12 Thread Will Sewell
My colleague Jim, and I, presented this video on Go's realtime GC at The Realtime Guild in London. In the first half of the talk, Jim steps through an animation of the tricolor mark and sweep algorithm. In the second half I explain a benchmark we created to measure worst case pause times and loo

[go-nuts] Re: [ANN] Darwin/ARM (aka. iOS) port of Go is READY

2017-04-12 Thread fastfading
Hi Minx It is go 1.8 now. how to build arm/darwin on macos ? Is the wiki still workable since go 1.5 has a great change . How to go build with cgo arm/darwin static/dynamic c lib for ios and android ? Yes I need* c lib* , not gomobile framwork/aar file. Could u give a tutorial ? There is li

[go-nuts] [tour] What about changing the icon to report an issue on Github?

2017-04-12 Thread Alessandro Baffa
Hello, there are a lot of issues of type "tour: [REPLACE WITH SHORT DESCRIPTION]" on Github that have been - I guess - opened by mistake. I guess people just want to try the small *bizarre-looking* icon on the top right and then they get confused on Github and create an actual issue. At the mom

[go-nuts] Re: Write a program for Linux in Go lang which can run any command (of coder's choice) on another machine (privately or publicly accessible) and prints its output.

2017-04-12 Thread Rich
Let me get you pointed in the right direction. I do this ALL the time. First it to learn the Godoc site. Godoc is an awesome site that you can search for different community written extensions to go, as well as get documentation on the existing go language packages -- if you're going to write i

[go-nuts] Re: Number of OS threads used by Go runtime

2017-04-12 Thread Val
For visualization of this value over time, you may use go tool trace https://making.pusher.com/go-tool-trace/ HTH, Val On Thursday, April 6, 2017 at 5:37:55 PM UTC+

Re: [go-nuts] How to distinguish a interface{} from a real type value?

2017-04-12 Thread xjdrew
Got your idea, 3x. On Tuesday, April 11, 2017 at 5:41:43 PM UTC+8, Jakob Borg wrote: > > The int gets boxed into an interface{} as part of the function call, > making it equivalent to the other interface{} passed. However: > > https://play.golang.org/p/uxFkrMa_cD > > > On 11 Apr 2017, at 11:32,