[go-nuts] Re: What's the maximum array length?

2022-10-28 Thread tapi...@gmail.com
The max array length is math.MaxInt. "[math.MaxInt]struct{}" is valid, though the practical size of non-zero-size array is hard limited in some way. On Friday, October 28, 2022 at 9:43:16 AM UTC+8 eric...@arm.com wrote: > The spec says that " The length is part of the array's type; it must > ev

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
Thank you very much On Fri, Oct 28, 2022, 8:15 AM Marvin Renich wrote: > * Robert Solomon [221028 07:36]: > > On ubuntu 22.04, I would like the walk function to NOT follow symlinks > to > > other filesystems. The find command uses the -xdev switch to achieve > this. > > > > How can I get walk

Re: [go-nuts] Integration testing program that internally forks itself

2022-10-28 Thread 'Bryan C. Mills' via golang-nuts
Generally I use environment variables for that sort of test, so that the part of the program that constructs the arguments for the program doesn't have to know to pass a special additional argument. (See, for example, https://cs.opensource.google/go/go/+/master:src/cmd/cover/cover_test.go;l=75

Re: [go-nuts] gofmt 1.19 reformats comments in a way which breaks go-swagger

2022-10-28 Thread Raphael Ebner
Hi, I don't know if this is the right place, but I'm struggling for a few hours now to get my go-swagger document working again and maybe you guys can help me :) I upgraded from go 1.18 to go 1.19 --> comments for go-swagger are reformatted and go-swagger breaks. So far, so bad. I have read a l

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Marvin Renich
* Robert Solomon [221028 07:36]: > On ubuntu 22.04, I would like the walk function to NOT follow symlinks to > other filesystems. The find command uses the -xdev switch to achieve this. > > How can I get walk to behave like the -xdev switch to find? On Linux: getdevid_linux.go package m

[go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
On ubuntu 22.04, I would like the walk function to NOT follow symlinks to other filesystems. The find command uses the -xdev switch to achieve this. How can I get walk to behave like the -xdev switch to find? Thx -- You received this message because you are subscribed to the Google Groups "g

Re: [go-nuts] GoLLVM: using the result of `go build -x . ` to rebuild the program got failed

2022-10-28 Thread 'Qingwei Li' via golang-nuts
when I copy the project to another directory and rerun commands I mentioned above, I get correct binary. I think the problem is `ln -s _pkg_.a libPkg.a`. The process was that I made an incomplete archive libPkg.a following the shell script but I didn't use _buildid.o file as argument when usi

Re: [go-nuts] Integration testing program that internally forks itself

2022-10-28 Thread Peter Galbavy
I also use a flag to do this, and I have a local package that then removes this flag (or any of a defined list) before re-execing the binary: https://github.com/ITRS-Group/cordial/tree/main/pkg/process https://pkg.go.dev/github.com/itrs-group/cordial/pkg/process#Daemon It may not be perfect, bu