package
Version:
v0.0.0-...-2adba4b
Opens a new window with list of versions in this module.
Published: Oct 28, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Car struct {
Make string `json:"make"`
Model string `json:"model,omitempty"`
EngineSpec EngineSpec `json:"engineSpec"`
}
type Cylinder struct {
Number string
}
+k8s:openapi-gen=true
type EngineSpec struct {
BHP string `json:"bhp"`
Cylinders []Cylinder `json:"cylinders"`
}
type Truck struct {
Car Car `json:"car"`
Make string `json:"make"`
Model string `json:"model,omitempty"`
EngineSpec EngineSpec `json:"engineSpec"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.