Closed kaz-as closed 1 year ago
Sorry, but functions and channels are generally out of scope. Valast is used to generate valid Go code, and is used by many to actually write Go code back into a Go source file. Your anticipated snippet of code would not be valid code.
Valast cannot convert structs if they have functions:
prints:
valast: cannot convert value of type func()
while I anticipate:
&Struct{NormalField: 123, FuncField: func()}