Search posts, tags, users, and pages
TotallyGamerJet
I like programming in Go and doing things with it I probably shouldn't.
One of the bugs I was tasked to solve at my #dayjob the second week there seemed simple on the surface. Potential applicants (aka leads), need to be submitted to the company wide server. The lead was original stored in our team's database so we'd ret...
Olex Khonko
actually why do you use pointer of slice
slice is a pointer itself. So you just work with pointer on pointer.
Instead you can improve you code and stop doint this crazy pointer on slice. And it would be much more better
The database column is nullable so the DTO is a pointer to properly represent that. The strategy discussed in this post is useful in other areas too. For example, an email type which can have stronger guarantees than a plain string.
Olex Khonko
actually why do you use pointer of slice
slice is a pointer itself. So you just work with pointer on pointer.
Instead you can improve you code and stop doint this crazy pointer on slice. And it would be much more better