You can check it in action here, https://go.dev/play/p/LCkzZSiXbo9
El lunes, 7 de agosto de 2023 a las 23:12:27 UTC+2, Iván Corrales Solera escribió: > I'm so happy to announce the very first release of *knoa > <https://github.com/ivancorrales/knoa>* > > The goal of knoa is to provide *a handy way to deal with unstructured > data* in #go #golang > > The below piece of code shows an example (You could find more examples > here <https://github.com/ivancorrales/knoa/tree/main/examples> > > ```go > type Person struct { > Firstname string `structs:"firstname"` > Age int `structs:"age"` > Siblings []Person `structs:"siblings,omitempty"` > } > > func main(){ > k := knoa.Map().Set("firstname", "John", "age", 20) > k.Set("siblings", []Person{ > { > Firstname: "Tim", > Age: 29, > }, > { > Firstname: "Bob", > Age: 40, > }, > }) > > k.Set("age", 23, "siblings[1].age", 39) > > var person Person > k.To(&person) > } > > ``` > > I am working hard to provide a ready-for-production release, but any > feedback or suggestion will be appreciated in the meantime! #golangdeveloper > > Thank you so much in advance! > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9055d91f-ff39-496e-bfe0-dc4b3258f567n%40googlegroups.com.