segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

tag: add stats.T shorthand func #58

Closed abraithwaite closed 7 years ago

abraithwaite commented 7 years ago

This enables us to run vet on code without the full verbosity of the go keyed fields for structs.

Fixes #57

abraithwaite commented 7 years ago

Protip for migration:

:%s/\vstats\.Tag\{"(\w+)", ("?[A-Za-z -\.\(\)_]+"?)\}/stats.T("\1", \2)/g
achille-roussel commented 7 years ago

Thanks for the sed, that's just what I needed :D