Go requires that attributes be uppercased in order to be exposed outside the package. When they are lowercase, they're private, which works okay inside the package (e.g., in your tests), but not outside. I ran into this when trying to display ParsedComponents as JSON: There was no way to get at the label or value!
Go requires that attributes be uppercased in order to be exposed outside the package. When they are lowercase, they're private, which works okay inside the package (e.g., in your tests), but not outside. I ran into this when trying to display
ParsedComponent
s as JSON: There was no way to get at the label or value!