Comment Comment by cookiengineer So your problem is the default/zero values of properties?In Go the convention is kind of to have a constructor pattern with a NewStruct(...) *Struct method that initializes all properties.Also can't you build your own validator for that with the reflect package in the Add() method of your UI graph to prevent this sorta thing? parent cookiengineer 2 months ago
In Go the convention is kind of to have a constructor pattern with a NewStruct(...) *Struct method that initializes all properties.
Also can't you build your own validator for that with the reflect package in the Add() method of your UI graph to prevent this sorta thing?