package model type Company struct { ID int Name string SharesOutstanding int Price float64 CurrencyID int Currency *Currency // populated on joins } type CompanyInput struct { Name string `json:"name"` SharesOutstanding int `json:"shares_outstanding"` Price float64 `json:"price"` CurrencyID int `json:"currency_id"` }