bingen.go 928 B

1234567891011121314151617181920212223242526
  1. package pricingmodel
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // NOTE: If you add fields to _any_ struct that is serialized by bingen, please
  4. // make sure to add those fields to the END of the struct definition. This is
  5. // required for backwards-compatibility. So:
  6. //
  7. // type Foo struct {
  8. // ExistingField1 string
  9. // ExistingField2 int
  10. // }
  11. //
  12. // becomes:
  13. //
  14. // type Foo struct {
  15. // ExistingField1 string
  16. // ExistingField2 int
  17. // NewField float64 // @bingen: <- annotation ref: bingen README
  18. // }
  19. //
  20. ////////////////////////////////////////////////////////////////////////////////
  21. // @bingen:define[string]:github.com/opencost/opencost/core/pkg/model/shared.Provider
  22. // @bingen:define[string]:github.com/opencost/opencost/core/pkg/model/shared.UsageType
  23. //go:generate bingen -package=pricingmodel -version=1 -buffer=github.com/opencost/opencost/core/pkg/util