looking at bellow struct of some librarie. Is this normal, url in struct part? I only saw json or xml, this is new for me. Code should send further then post with json.
example at https://play.golang.org/p/70yXwA0R9Ou, i add the json tag to tell json.Marshal how to marshal data. And as you can see, field of string printed is exactly same with definition in tags, and field with tag omitempty will not marshaled if is nil. By the way, the struct have two same tags fields, user_id, corrects in example.
Thank you for this. You have now two tags, one is json and one uri. So in this case βuriβ tag is just for personal use as mashas/unmarshal can only use json, right?