Re: [go-nuts] What is recommended way to initialize and keep prepared statements in go Lang

2019-04-15 Thread eric via golang-nuts
On Sunday, April 14, 2019 at 3:17:46 AM UTC-7, Shrinath agarwal wrote: > > Hi Marcin, > > I know about Prepare function supported by sql package .My initial > question was what is better way to pass multiple prepare statements on > different http handlers . > ex: we can construct struct like thi

Re: [go-nuts] The performance comparation of Golang and Java

2019-01-25 Thread eric via golang-nuts
Microbenchmarks can always be misleading. My take on Go vs. Java performance: https://www.quora.com/When-can-Golang-be-as-fast-as-Java/answer/Eric-Johnson-157 The key point is that optimizing the developer's time completely swamps a lot of other limitations. This partly explains why Python and J

[go-nuts] Re: Best practices for using methods on types to write SQL

2018-12-20 Thread eric via golang-nuts
On Thursday, December 20, 2018 at 7:23:22 AM UTC-8, Nick wrote: > > Hi all, > > I'm newish to Go, and I've been really enjoying using it. I'm still > getting to grips with the best practices of the language. > > Up until now, I've used MarshalJSON methods on complex struct types > to easily s