Re: [go-nuts] Refresher tutorial

2022-12-10 Thread Ken MacDonald
Thanks, Sean & Eli for the recommendations- I’ll check them out. - Ken Sent from my iPad > On Dec 10, 2022, at 1:01 PM, 'Sean Liao' via golang-nuts > wrote: > >  > consider something like https://learnxinyminutes.com/docs/go/ > if you just need a brief refresher on syntax/core concepts > >

Re: [go-nuts] Linting

2022-12-10 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2022-12-10 at 14:44 +0100, Marcello H wrote: > golangci_lint ... > > Op za 10 dec. 2022 om 13:17 schreef Brian Candler > : > > The question remains, which linter(s) are you using? golangci_lint is not really an answer to this question since it's just a collection of linters, many of which

Re: [go-nuts] Refresher tutorial

2022-12-10 Thread 'Sean Liao' via golang-nuts
consider something like https://learnxinyminutes.com/docs/go/ if you just need a brief refresher on syntax/core concepts - sean On Sat, Dec 10, 2022, 17:17 Ken wrote: > Hi, when I first learned golang, there was a nice tutorial avaiable. I’m > in need of a refresher as I haven’t used it in

Re: [go-nuts] Refresher tutorial

2022-12-10 Thread Eli Bendersky
There's a good list of resources recommended at https://go.dev/learn/ Start with https://go.dev/tour/welcome/1 Then check out the official tutorials at https://go.dev/doc/tutorial/ On Sat, Dec 10, 2022 at 9:18 AM Ken wrote: > Hi, when I first learned golang, there was a nice tutorial

[go-nuts] Refresher tutorial

2022-12-10 Thread Ken
Hi, when I first learned golang, there was a nice tutorial avaiable. I’m in need of a refresher as I haven’t used it in quite a while, but know there are 100’s of tutorials. Would like to find a recommended one where I could quickly brush up on functionality and syntax. Thanks! Ken Sent from

Re: [go-nuts] Linting

2022-12-10 Thread Marcello H
golangci_lint and my own (for the cognitive code complexity) Op za 10 dec. 2022 om 13:17 schreef Brian Candler : > The question remains, which linter(s) are you using? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To

[go-nuts] Re: json encoder with large object (big bytes array)

2022-12-10 Thread Tamás Gulácsi
Not directly, but you can implement sth akin: https://go.dev/play/p/vN2uAp9rRpp With reflection, you can build a helper that uses the exposed MarshalInto on types that implement it, and falls back to Marshal otherwise. jerome@gmail.com a következőt írta (2022. december 10., szombat,

Re: [go-nuts] Linting

2022-12-10 Thread Brian Candler
The question remains, which linter(s) are you using? -- 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

Re: [go-nuts] Linting

2022-12-10 Thread Marcello H
I agree that not all linting is useful, but when I see certain outcome that is questionable, I would be investigating that a bit more if it was my code. For example: There is code that uses deprecated functionality, that could easily be changed to the newer version of that. There are: - lots of

Re: [go-nuts] where is GOROOT set?

2022-12-10 Thread Brian Candler
On Saturday, 10 December 2022 at 05:50:53 UTC pat2...@gmail.com wrote: > thanks, and the playground is nice. > > I think this is saying that if I want a baz and bar executable (chmod +x) > then I need the "package main" in separate folders/directories > Yes. The approach I use (which I borrowed

Re: [go-nuts] Linting

2022-12-10 Thread Brian Candler
On Friday, 9 December 2022 at 19:09:34 UTC Ian Lance Taylor wrote: > 1) Linters are optional and opinionated, and it kind of matters which > linter you mean. And of course, go itself already comes with the grandaddy of all linters - "go vet ". -- You received