|
|
|
|
|
by TheDong
73 days ago
|
|
See, for example, this blog post from 2014: https://go.dev/blog/generate The following comment in the blog post //go:generate stringer -type=Pill
generates a .._string.go file which contains a '.String()' method.I would find it very reasonable to commit that with 'Co-Authored-By: stringer v0.1.0' or such. Or 'sed s/a/b/g' and 'Co-Authored-By: sed' |
|