1.5.0
A new command has been added to goi18n
.
goi18n constants
generates a file of constants for each translation id.
e.g.
package R
// MyHeightInMeters is the identifier for the following localizable string template(s):
// one: "I am {{.Count}} meter tall."
// other: "I am {{.Count}} meters tall."
const MyHeightInMeters = "my_height_in_meters"
Thanks @rodrigocorsi2!