Re: [go-nuts] Should "go install module@version" interact with ~/.local/bin?

2021-07-14 Thread 'Axel Wagner' via golang-nuts
FWIW, ~/.local/bin is not in my path, on Fedora. Though I can, of course, change that. And while macOS might not be treated as representative of the unix ecosystem, it *definitely* should be considered part of the Go ecosystem. It does weaken the argument of ~/.local/bin being "the standard install

Re: [go-nuts] How are interfaces marked by the GC?

2021-07-14 Thread Ben Hoyt
Interesting, thanks for the explanation! On Thu, Jul 15, 2021 at 12:23 PM Ian Lance Taylor wrote: > On Wed, Jul 14, 2021 at 2:11 PM ben...@gmail.com > wrote: > > > > Out of interest, why was that changed? Was the optimization not worth > it? Did it just require too much special handling so the

Re: [go-nuts] How are interfaces marked by the GC?

2021-07-14 Thread Ian Lance Taylor
On Wed, Jul 14, 2021 at 2:11 PM ben...@gmail.com wrote: > > Out of interest, why was that changed? Was the optimization not worth it? Did > it just require too much special handling so the code was unclear? When we switched to using a concurrent garbage collector, we had to consider the possibil

Re: [go-nuts] Should "go install module@version" interact with ~/.local/bin?

2021-07-14 Thread Fuzzy Fabricator
On Tuesday, July 13, 2021 at 9:50:25 PM UTC-7 rcore...@gmail.com wrote: > It would be great if there were a universal standard location in the > user's $HOME directory that is already on the PATH, because that always > trips up new users when starting to use a CLI. > > But that does not appear

Re: [go-nuts] How are interfaces marked by the GC?

2021-07-14 Thread ben...@gmail.com
Out of interest, why was that changed? Was the optimization not worth it? Did it just require too much special handling so the code was unclear? On Wednesday, July 14, 2021 at 8:32:06 AM UTC+12 Ian Lance Taylor wrote: > On Tue, Jul 13, 2021 at 1:29 PM Kristoffer Semelka > wrote: > > > > I noti

Re: [go-nuts] Re: Go on Windows 10 ARM

2021-07-14 Thread Amit Saha
On Thu, 15 July 2021, 1:32 am Nate, wrote: > Go 1.17rc1 is available, and you may now grab a copy for Windows 10 ARMv8 > on the downloads page . Thank you. > On Wednesday, June 30, 2021 at 10:14:14 PM UTC-4 amits...@gmail.com wrote: > >> Hi all - I am curious

[go-nuts] Re: how to create array of structures instances for the nested structures

2021-07-14 Thread jake...@gmail.com
Some ways to do it: https://play.golang.org/p/sg08Buv-E3- Note that arrays are rarely used in Go. When in doubt, default to using a slice. I provided slice examples as well. If you want to initialize a very large array or slice to a value other than the zero value, you could also use a loop.

[go-nuts] Re: how to create array of structures instances for the nested structures

2021-07-14 Thread Brian Candler
https://play.golang.org/p/YtxPYZ4H-Sy In practice, you'll usually find you want to create a slice, not an array. Arrays have a fixed size. On Wednesday, 14 July 2021 at 16:32:13 UTC+1 trivedi...@gmail.com wrote: > Hi all, it would be helpful for me if a small doubt of mine is resolved. > > I w

[go-nuts] "go test -coverageprofile=tmp.out ./service/..." does not include top-level coverage

2021-07-14 Thread Viktor Luft
### What version of Go are you using (`go version`)? $ go version go version go1.16 darwin/amd64 ### Does this issue reproduce with the latest release? Don't know. ### What operating system and processor architecture are you using (`go env`)? go env Output $ go env GOARCH="amd64" GOOS="darw

[go-nuts] Re: Go on Windows 10 ARM

2021-07-14 Thread Nate
Go 1.17rc1 is available, and you may now grab a copy for Windows 10 ARMv8 on the downloads page . On Wednesday, June 30, 2021 at 10:14:14 PM UTC-4 amits...@gmail.com wrote: > Hi all - I am curious if anybody has installed the Go toolchain on > Windows 10 ARM 64?

[go-nuts] how to create array of structures instances for the nested structures

2021-07-14 Thread Nagaraj Trivedi
Hi all, it would be helpful for me if a small doubt of mine is resolved. I want to know how to create an array of structure instances for a nested structure. Let me write it type Strct1 struct { val1 int val2 int } type Strct2 struct { Namce string temp Strct1 } I want t