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 save the state of data, using Marshal() from encoding/json. This has worked really well, and I have started to get the simple power of interfaces with how easy it was to do. I've got to the stage that it makes more sense to use SQL than JSON for my data now, and I was thinking it would make most sense to have a similar process to read and write SQL, using methods on my struct data types, which can then be called by functions that take an interface implementing those methods. I'm wondering if anybody else has done anything similar (I presume so!), and could point me to examples of ways people have done this. Any other thoughts on the best ways to organise my code to do this cleanly and reusably would be very welcome indeed - as I say, I'm new enough to Go that maybe I'm still thinking about this all wrong! Thanks in advance, Nick -- 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. For more options, visit https://groups.google.com/d/optout.