[go-nuts] Re: Web development with Go

2022-02-04 Thread Paulo Júnior
Hi Merson. What wonderful improvements. Thanks a lot for your contribution. Paulo. Em sexta-feira, 4 de fevereiro de 2022 às 21:05:18 UTC-3, merson...@actmedical.com.au escreveu: > Paulo > > An important use case is when packaging your app in a container for > deployment in Kubernetes or Goog

Re: [go-nuts] Slices of pointers or not?

2022-02-04 Thread Paulo Júnior
gt; > > > On Thu, Feb 3, 2022 at 7:07 PM Paulo Júnior > wrote: > >> > >> Hi all. > >> > >> I hope you are well. > >> > >> Is there a big difference, in terms of performance or functionality, > between declaring []*Person or

[go-nuts] Slices of pointers or not?

2022-02-03 Thread Paulo Júnior
Hi all. I hope you are well. Is there a big difference, in terms of performance or functionality, between declaring *[]*Person* or *[]Person* as a return type of a function? Code sample https://go.dev/play/p/tBAod1hZvYu Thank you and best regards. Paulo. -- You received this message becaus

[go-nuts] Web development with Go

2022-02-03 Thread Paulo Júnior
Hi all. I hope you are well. What are the main use cases for traditional web applications (I mean non-SPA) development with Go? In other words, in a world of Single Page Applications (SPA) and its frameworks (such as Angular, React, Vue, so on) where does Go have space? Best regards. Paulo.

Re: [go-nuts] Not used var error

2022-01-18 Thread Paulo Júnior
:17, Ian Lance Taylor escreveu: > On Mon, Jan 17, 2022 at 7:07 PM Paulo Júnior > wrote: > > > > I'm studying about if statement and comma ok construction and I'm not > sure why the piece of code (https://go.dev/play/p/ScFJsih6lwR) bellow > does not work. The compiler s

[go-nuts] Not used var error

2022-01-17 Thread Paulo Júnior
Hi all. I'm studying about *if statement* and *comma ok construction* and I'm not sure why the piece of code (https://go.dev/play/p/ScFJsih6lwR) bellow does not work. The compiler says that: *x declared but not used*. However, *x* is used in the second *if statement *of the *main function*, as