Re: [go-nuts] How to have panic messages show in a PowerShell console

2024-02-28 Thread 'Jim Idle' via golang-nuts
You should upgrade your Go installation to the latest version and retry. Go 1.6.3, if that is not a typo is very old. Jim On Feb 28 2024, at 11:35 am, Thom BENTLEY wrote: > Hi All, > > OS: Windows 10 > GoLang: go1.6.3 windows/386 > > I am trying to have a go executable run and show the panics

Re: [go-nuts] Re: Weird error when trying to fetch a module.

2023-09-15 Thread 'Jim Idle' via golang-nuts
The go.mod at the root was one thing that might work, but it will cause the entire repo to be pulled in so the tag will still have to be sec/go/ etc. On Fri, Sep 15, 2023 at 15:15 Brian Candler wrote: > > Keep your go source at the root of the repo and tag that > > Or would it be OK just to put

Re: [go-nuts] Re: Parsing difficult JSON

2023-09-14 Thread 'Jim Idle' via golang-nuts
You can also unmarshal in stages to Raw and then unmarshal the next piece based on what you have so far. I presume that you cannot change the format? On Fri, Sep 15, 2023 at 01:05 Tobias Klausmann wrote: > Hi! > > On Thu, 14 Sep 2023, Brian Candler wrote: > > Could you just unmarshal it to a

Re: [go-nuts] Re: Weird error when trying to fetch a module.

2023-09-14 Thread 'Jim Idle' via golang-nuts
It’s an absolute nightmare to publish modules from subdirectories. I gave up for ANTLR and created a new repo with the source code in the root directory. But the art is that you need to create a tag named with the subdirectory. I was able to make that work until we needed a v{n} tag. Which as far

Re: [go-nuts] Slog and error tracing

2023-08-10 Thread 'Jim Idle' via golang-nuts
You are logging the same error many times and then trying to solve that in the logs. Try this: Only log the error where it is handled, otherwise wrap it and return it without logging. At some point, you will log it as either an error if there is nothing you can do about it, or a warning if

Re: [go-nuts] go package dating back to 2009

2023-07-26 Thread 'Jim Idle' via golang-nuts
Decred is a project that was originally put together by someone who never claimed the moniker used by the originator. I suggest that 'Bravo Moua' is trying to claim authorship. HOwever, it is clear that I am Spartacus.

Re: [go-nuts] [net.mail] ReadMessage returns nil, io.EOF when email w/o body.

2023-07-18 Thread 'Jim Idle' via golang-nuts
If you are doing any serious email work, you might find that the enmime module is useful. https://github.com/jhillyerd/enmime And perhaps this: https://github.com/gatherstars-com/jwz Jim On Wed, Jul 19, 2023 at 9:07 AM Karan Gupta wrote: > That is correct. It is the same issue. > Thanks for

Re: [go-nuts] Go routines consuming memory

2023-06-06 Thread 'Jim Idle' via golang-nuts
of ChatGPT to create some of the examples caused an eye-roll > so strong I was surprised it didn't physically hurt. > > On Tue, Jun 6, 2023 at 8:29 PM 'Jim Idle' via golang-nuts < > golang-nuts@googlegroups.com> wrote: > >> This benchmark is worthless for all languages use

Re: [go-nuts] Go routines consuming memory

2023-06-06 Thread 'Jim Idle' via golang-nuts
This benchmark is worthless for all languages used. - Each Go routine will be given a 2K stack. - Go routines are managed by Go, threads by the operating system. - C# uses a thread pool. - There's a lot wrong with this article, not just with things being claimed about Go. -

Re: [go-nuts] go mod download fails on docker for 1.20 (but not for 1.18)

2023-05-21 Thread 'Jim Idle' via golang-nuts
My guess is that IPV6 is disabled in your containers. If you use docker run -it xxx yyy -c "ip -6 addr show dev eth0; ip -6 route show" Then you can find out if that is the case. On Mon, May 22, 2023 at 8:29 AM Joao Miguel Ferreira < joao.miguel.c.ferre...@gmail.com> wrote: > Hello all, > > My

Re: [go-nuts] Proposal: provide runtime sigprocmask api to block some signal for go runtime

2019-08-14 Thread 'Jim Idle' via golang-nuts
*Note that you must not use sigprocmask in multi-threaded processes, because each thread has its own signal mask and there is no single process signal mask. According to POSIX, the behavior of sigprocmask in a multi-threaded process is “unspecified”. * There is a lot more to signal handling than

Re: [go-nuts] I know you cannot kill a goroutine, but ...

2019-08-12 Thread 'Jim Idle' via golang-nuts
Good luck on your implementation. I suggest though that you will find too many issues like this to use go routines as the base model for a user. I looked in to threads as a model for jBASE and even with that model, it was going to be too fraught with difficulty. Unless you are considering a