USEPA / revampd

Basic tutorial for the EPA Clean Air Markets Division to go through the process of creating a small web app, in the problem space of AMPD, with automated tests and deployment to cloud.gov at https://revampd.app.cloud.gov
Other
2 stars 1 forks source link

Database updates #24

Closed maheese closed 4 years ago

maheese commented 4 years ago

Added an implementation of the API spec

maheese commented 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 *intdb:"op_year" json:"operatingYear"``