oto
oto copied to clipboard
Generate only selected interfaces?
flags:
-ignore string
comma separated list of interfaces to ignore
Is it possible to add similar:
flags:
-include string
comma separated list of interfaces to generate
-list
comma separated list of all defined interfaces
I would like to have each interface generated in a separate file, so I would call something like:
for interface in `oto -list`; do
oto -out ./generated/${interface}/${interface}.go -pkg ${interface} -include ${interface}
done
Or is there any other simple method to generate separate files?