docs: add godoc
This commit is contained in:
@@ -24,13 +24,15 @@ var (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
type FormationSlice []*Formation
|
// Formation contains scaling information for a given process type
|
||||||
|
|
||||||
type Formation struct {
|
type Formation struct {
|
||||||
ProcessType string `json:"process_type"`
|
ProcessType string `json:"process_type"`
|
||||||
Quantity int `json:"quantity"`
|
Quantity int `json:"quantity"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FormationSlice contains a slice of Formations that can be sorted
|
||||||
|
type FormationSlice []*Formation
|
||||||
|
|
||||||
func (d FormationSlice) Len() int {
|
func (d FormationSlice) Len() int {
|
||||||
return len(d)
|
return len(d)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user