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