coco
coco copied to clipboard
Consider using structwalk for listing nested struct fields
You can use FieldList
from https://github.com/xlab/structwalk for this kind of stuff:
https://github.com/mrmiguu/coco/blob/e51861ba64cb68c40c4abda2cce111872c47fd30/coco.go#L238
We can implement MethodList
as well.
P.s. Cool project, ty