Friends, I am creating an API using GoLang. Actually a set of microservices. In this process of creation some doubts arose.
Hey there:
In my API I have a Struct that returns a set of attributes in JSON format. It turns out that depending on the method to invoke, this Struct is returned containing only some of its attributes, not all. In this case, is DTO’S used or is there any other kind of solution in Go to help solve this kind of problem?
Thanks in advance for those who help.
I am from Brazil. My English is more or less