Closed maheese closed 4 years ago
@ntknguyen When you modified the unit struct you changed the field names to lowercase. In golang whether a field is visible outside of the current package is dictated by the case of the property name. Uppercase -> public, lowercase -> private. To get the struct fields to match the API spec you will need to change them back to uppercase and add a struct tag.
OperatingYear *int
db:"op_year" json:"operatingYear"``
Added an implementation of the API spec