useragent
useragent copied to clipboard
Add json and yaml struct tags.
Would like to use UserAgent type as api response.
If someone is already doing export to JSON from this struct, this update might break the existing code, so I can't merge it into 1.x, maybe with 2.0 if I decide to make some breaking changes. It is more like developer preferences, upper case or lowercase letters in JSON, this way it is Go's natural behavior. I guess the yaml part can't heart although yaml support is not the part of golang standard library.