| 1234567891011121314151617181920212223 |
- package kubemodel
- ////////////////////////////////////////////////////////////////////////////////
- // NOTE: If you add fields to _any_ struct that is serialized by bingen, please
- // make sure to add those fields to the END of the struct definition. This is
- // required for backwards-compatibility. So:
- //
- // type Foo struct {
- // ExistingField1 string
- // ExistingField2 int
- // }
- //
- // becomes:
- //
- // type Foo struct {
- // ExistingField1 string
- // ExistingField2 int
- // NewField float64 // @bingen: <- annotation ref: bingen README
- // }
- //
- ////////////////////////////////////////////////////////////////////////////////
- //go:generate bingen -package=kubemodel -version=1 -buffer=github.com/opencost/opencost/core/pkg/util
|