You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editing the main source file is just evil. It makes diffs harder to read, it messes with the files open in my editor, and what go generate stuff is out there has already settled into writing new files.
My personal favorite has been to use *.gen.go for generated go source. Stringer (https://godoc.org/golang.org/x/tools/cmd/stringer) seems to use *_string.go, but that's a bit weird to me because it interacts with build tags..
The text was updated successfully, but these errors were encountered:
Editing the main source file is just evil. It makes diffs harder to read, it messes with the files open in my editor, and what go generate stuff is out there has already settled into writing new files.
My personal favorite has been to use
*.gen.go
for generated go source. Stringer (https://godoc.org/golang.org/x/tools/cmd/stringer) seems to use*_string.go
, but that's a bit weird to me because it interacts with build tags..The text was updated successfully, but these errors were encountered: