[go-nuts] Re: Questions about documentation of Go standard library

2021-08-26 Thread Volker Dobler
On Thursday, 26 August 2021 at 22:17:55 UTC+2 kziem...@gmail.com wrote: > Another topic. I needed to check package "math/bits" (learning about Go > can lead us in such places quite fast) and I'm confused about function > "Len(x uint) int". In its description we have ( >

Re: [go-nuts] Using a local copy of an external package?

2021-08-26 Thread 'Dan Kortschak' via golang-nuts
On Thu, 2021-08-26 at 18:21 -0400, Paul S. R. Chisholm wrote: > Hypothetical example: Say I'm writing an application that > uses "rsc.io/quote" and I discover a bug in that package that breaks > my software. I would of course clone the quote repository, add a test > that demonstrates the bug, fix

[go-nuts] Using a local copy of an external package?

2021-08-26 Thread Paul S. R. Chisholm
Hypothetical example: Say I'm writing an application that uses "rsc.io/quote" and I discover a bug in that package that breaks my software. I would of course clone the quote repository, add a test that demonstrates the bug, fix the bug, and submit a patch to the maintainer. After making the fix

[go-nuts] Re: Questions about documentation of Go standard library

2021-08-26 Thread Kamil Ziemian
Thank you for responses. Indeed, such things don't hamper using of package, but are confusing to me and I have already too much confusing thing in my work. So, I need no more of them. ;) Another topic. I needed to check package "math/bits" (learning about Go can lead us in such places quite

[go-nuts] Re: Questions about documentation of Go standard library

2021-08-26 Thread Volker Dobler
On Thursday, 26 August 2021 at 13:27:01 UTC+2 kziem...@gmail.com wrote: > Line "early regular expression implementations used and that POSIX > specifies" is a bit confusing to me. I guess it can mean "old > implementations Go regexp package", This guess is wrong. Go's regexp package did and

Re: [go-nuts] Questions about documentation of Go standard library

2021-08-26 Thread Joshua O'Connor
Hi, I read that line as "very old implementations of regular expressions in different languages and systems". And indeed this documentation hasn't changed since Go v1 (), so I'm pretty sure it means that. In any case I don't think it should affect

[go-nuts] cgo and fatal: morestack on g0

2021-08-26 Thread Miha Vrhovnik
Hey, we are using a library via CGO that is the emulator for a real device. That library also contains a javascript engine which calls to Go for communication to the outside world. The problem we are facing is that we are getting more and more crashes with "morestack on g0". I have found

[go-nuts] Questions about documentation of Go standard library

2021-08-26 Thread Kamil Ziemian
Hello, I now need to learn regular expressions for my work and since I can choose tool, I decided combine it with learning Go. When documentation of "regexp" package (I hope that I use this name correctly) is in most part clear to me, one thing is unclear to me. Since, I probably raise many

[go-nuts] no plan9obj.ErrNoSymbols

2021-08-26 Thread 'Dan Kortschak' via golang-nuts
The elf package provide a sentinel error, ErrNoSymbols for the case that Symbols or DynamicSymbols cannot return a symbol list because the section is empty[1]. The same situation is handled in plan9obj by returning a new error for this case[2-3]. For PE/Mach-O there is no issue since access to the