Open rcoreilly opened 5 years ago
This would be part of a broader interactive GUI designer project -- not planned for V2 at this point.
GoString
is the standard method for this, and we could probably implement a basic version of this relatively easily just based on the already existing json:"-"
struct tags. However, there would definitely be issues with closures and tree nesting. Regardless, this is not a high priority as stated above, and will probably be developed as part of some interactive GUI editor app at some point later on.
probably the most useful output format for the widgets is code generation, rather than the json state -- should be able to do this at any level via context menu in GoGiEditor -- then you can just quickly mock something up and get the code to recreate that, and add your methods etc from there.