[go-nuts] Re: Install Lastest Modules

2019-05-14 Thread Andrew
It works great. Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: [go-nuts] custom build tags - seeing which files get selected

2019-05-14 Thread 'White Hexagon' via golang-nuts
Thanks, that's working just as I needed. I have 4 build targets from a single pkg+ sub pkgs, so this lets me now see what's going on, and also keep an audit of what was built. It's a shame vscode can't flag the files, I'm having to use file names with the tags to find my way around, but at

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-14 Thread Tristian Azuara
Hi!, gomobile does not produce BITCODE enabled frameworks, (AFAIK) you have to set the XCode `ENABLE_BITCODE` build setting to `NO`, `gomobile` (the latest version) automatically adds the `-fembed-bitcode` as C flag, here you can find a better explanation of it: *

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-14 Thread constantine
When I compile with: gomobile bind -target=ios -tags="ios" -v mygomobileios and importing the generated Mygomobileios.framework I get an error: ld: '/mygo/src/mygomobileios/gomobileios_test/Mygomobileios.framework/Mygomobileios(go.o)' does not contain bitcode. You must rebuild it with

[go-nuts] Install Lastest Modules

2019-05-14 Thread Tamás Gulácsi
Where you import it, import .../excelize/v2 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on

Re: [go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread keith . randall
By the way, these instructions are not generated by the compiler. They are part of the assembly in the stdlib (runtime or internal/bytealg, probably). On Tuesday, May 14, 2019 at 7:37:44 AM UTC-7, Amnon Baron Cohen wrote: > > OK. > Thanks for the explanation and pointers. > > On Tuesday, 14 May

Re: [go-nuts] Install Lastest Modules

2019-05-14 Thread Marcin Romaszewicz
go get -u github.com/360EntSecGroup-Skylar/excelize/v2 will do what you want. You then have to import " github.com/360EntSecGroup-Skylar/excelize/v2" in all your Go files. -- Marcin On Tue, May 14, 2019 at 3:37 PM Andrew wrote: > I want to install the latest version(v2.0.0) of excelize library

[go-nuts] Install Lastest Modules

2019-05-14 Thread Andrew
I want to install the latest version(v2.0.0) of excelize library using: go get -u github.com/360EntSecGroup-Skylar/excelize@latest But the go.mod file updated using the old version 1.4.1 module learn go 1.12 require ( github.com/360EntSecGroup-Skylar/excelize v1.4.1 // indirect

Re: [go-nuts] custom build tags - seeing which files get selected

2019-05-14 Thread 'Ian Cottrell' via golang-nuts
./... is a wildcard pattern that matches directories including and below the current one go list -f '{{.GoFiles}}' -tags MYTAGS ./... should do what you want. *From: *'White Hexagon' via golang-nuts *Date: *Tue, May 14, 2019 at 11:17 AM *To: *golang-nuts Thanks Ian. > > I should have

Re: [go-nuts] Go if else syntax .. suggested replacement

2019-05-14 Thread Michael Jones
On Mon, May 13, 2019 at 7:46 AM wrote: > Given the extent of responses to the original question by the Go community > (pro and con), hopefully those responsible for Go syntax will re-visit the > issue and decide whether Go statement "if test then {.. } else { .. }" > prevents any possible abuse

Re: [go-nuts] Using archive ".a" at time of build

2019-05-14 Thread Leonel Quinteros
Maybe using Plugins? Read material: https://golang.org/pkg/plugin/ https://medium.com/learning-the-go-programming-language/writing-modular-go-programs-with-plugins-ec46381ee1a9 El lunes, 13 de mayo de 2019, 10:55:40 (UTC-3), raje@gmail.com escribió: > > Hi Ian, > > > Is there any other way

[go-nuts] GOGOConf - international Golang conference in Kraków!

2019-05-14 Thread Agata Pilarska
Dear Go Enthusiasts, 2019 GoGoConf edition is coming! GoGoConf is an international Golang developers' conference that will take place for the 2nd time in Krakow, Poland on June 14th, 2019. Join the event to meet other Go enthusiasts, chat with great speakers and get some learnings! Go to

Re: [go-nuts] custom build tags - seeing which files get selected

2019-05-14 Thread 'White Hexagon' via golang-nuts
Thanks Ian. I should have mentioned that I am using go 1.12.1 with modules. So my 'main' package/module has a number of sub-folder packages as dependencies. I found the -deps option, but that seems to include every dependency (also useful info) but is there a way to limit that to just my

Re: [go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Amnon Baron Cohen
OK. Thanks for the explanation and pointers. On Tuesday, 14 May 2019 15:15:46 UTC+1, Ian Lance Taylor wrote: > > On Tue, May 14, 2019 at 7:03 AM Amnon Baron Cohen > wrote: > > > > go version > > go version go1.12.5 linux/amd64 > > > GODEBUG=cpu.avx=off go build hello.go > > > objdump -d

Re: [go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Ian Lance Taylor
On Tue, May 14, 2019 at 7:03 AM Amnon Baron Cohen wrote: > > go version > go version go1.12.5 linux/amd64 > > GODEBUG=cpu.avx=off go build hello.go > > objdump -d hello | grep '%ymm' > 4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2 > 4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3 >

Re: [go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Amnon Baron Cohen
Thanks! > > go version go version go1.12.5 linux/amd64 > GODEBUG=cpu.avx=off go build hello.go > objdump -d hello | grep '%ymm' 4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2 4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3 4021c5: c5 fe 6f 66 20vmovdqu 0x20(%rsi),%ymm4 >

Re: [go-nuts] custom build tags - seeing which files get selected

2019-05-14 Thread Ian Lance Taylor
On Tue, May 14, 2019 at 5:41 AM 'White Hexagon' via golang-nuts wrote: > > My project is growing and I have started using custom build tags. When I > build the project I would really like to see a list of all the files that > have been selected based on the tags I have requested. Is that

Re: [go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Ian Lance Taylor
On Tue, May 14, 2019 at 2:18 AM Amnon Baron Cohen wrote: > > I am trying to avoid running any AVX instructions in order to prevent Intel's > dynamic frequency scaling > reducing my CPU base frequency. You should be able to avoid AVX instructions at runtime by setting the environment variable

[go-nuts] custom build tags - seeing which files get selected

2019-05-14 Thread 'White Hexagon' via golang-nuts
My project is growing and I have started using custom build tags. When I build the project I would really like to see a list of all the files that have been selected based on the tags I have requested. Is that possible? Thanks, Peter -- You received this message because you are subscribed

[go-nuts] How to use latest go 1.12 crypto/tls psk extension - TLSv1.3 with pre-shared key?

2019-05-14 Thread Ivo Stoyanoff
I see that go 1.12 added full support for TLSv1.3 with pre-shared key (RFC 8446) which is great. I am trying to make use of it but there is not much in unit tests / examples / documentation. It is understandable as it is really new and bleeding edge... I am looking for help or example how to

[go-nuts] Re: Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Amnon Baron Cohen
apart from GOARCH=386 ? On Tuesday, 14 May 2019 10:17:46 UTC+1, Amnon Baron Cohen wrote: > > I am trying to avoid running any AVX instructions in order to prevent > Intel's dynamic frequency scaling > reducing my CPU base frequency. > > Thanks, >Amnon > > -- You received this message

[go-nuts] Any way to prevent gc emitting AVX256 and AVX512 instructions for amd64?

2019-05-14 Thread Amnon Baron Cohen
I am trying to avoid running any AVX instructions in order to prevent Intel's dynamic frequency scaling reducing my CPU base frequency. Thanks, Amnon -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop