mtchuyen / Golang-Tips

Tips in Golang programming
3 stars 2 forks source link

Map to struct and vice versa #7

Open mtchuyen opened 3 years ago

mtchuyen commented 3 years ago

https://groups.google.com/g/golang-nuts/c/itJn95Cb9hI

https://github.com/fatih/structs

https://programmersought.com/article/93641771999/

empty struct

https://medium.com/@enengege/go-empty-struct-62aff62042df

mtchuyen commented 3 years ago

How to efficiently concatenate strings in go

https://newbedev.com/how-to-efficiently-concatenate-strings-in-go

mtchuyen commented 2 years ago

Struct Tagging for playing nice with data marshalling

https://mipsmonsta.medium.com/golang-struct-tagging-for-playing-nice-with-data-marshalling-9c5672def8fc

mtchuyen commented 2 years ago

Method Receivers

https://medium.com/@ugurkinik/golang-basics-method-receivers-cd4decf2e837

mtchuyen commented 2 years ago

How to Map a []Struct to a []interface in Go 🐹

https://cgarciarosales97.medium.com/how-to-map-a-struct-to-a-interface-in-go-418eff32fb0

mtchuyen commented 2 years ago

How to Speed Up Your Struct in Golang

https://betterprogramming.pub/how-to-speed-up-your-struct-in-golang-76b846209587

[Golang] Writing memory efficient and CPU optimized Go Structs

https://towardsdev.com/golang-writing-memory-efficient-and-cpu-optimized-go-structs-62fcef4dbfd0

Golang: simple optimization notes

https://medium.com/scum-gazeta/golang-simple-optimization-notes-70bc64673980

mtchuyen commented 2 years ago

Avoid The Three Mistakes When Using a Map in Go

https://levelup.gitconnected.com/avoid-the-three-mistakes-when-using-a-map-in-go-699435db226c