Open emfomy opened 1 year ago
I would like to put go:generate in --iface-comment. However, the leading space makes generated comment useless.
go:generate
--iface-comment
ifacemaker ... -y "go:generate cmd ..." generates
ifacemaker ... -y "go:generate cmd ..."
//go:generate cmd ... type Interface interface { }
// go:generate cmd ... type Interface interface { }
Add an optional to remove the leading space.
Sounds like a trivial fix just to check for the go:generate prefix. Willing to merge in the PR that addresses this.
I would like to put
go:generate
in--iface-comment
. However, the leading space makes generated comment useless.Expected Behaviour
ifacemaker ... -y "go:generate cmd ..."
generatesActual Behaviour
ifacemaker ... -y "go:generate cmd ..."
generatesPossible Solution
Add an optional to remove the leading space.