useragent icon indicating copy to clipboard operation
useragent copied to clipboard

Add json and yaml struct tags.

Open masv3971 opened this issue 3 years ago • 1 comments

Would like to use UserAgent type as api response.

masv3971 avatar Jun 22 '22 11:06 masv3971

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.

mileusna avatar Jun 22 '22 13:06 mileusna