bingen.go 748 B

1234567891011121314151617181920212223
  1. package kubemodel
  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. //go:generate bingen -package=kubemodel -version=1 -buffer=github.com/opencost/opencost/core/pkg/util