Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAPIPartialFail = errors.New("an API request failed")
Functions ¶
func Sort ¶
func Sort(slice []Data, by SortByOption)
Types ¶
type DataSorter ¶
type DataSorter struct {
// contains filtered or unexported fields
}
func (*DataSorter) Len ¶
func (s *DataSorter) Len() int
func (*DataSorter) Less ¶
func (s *DataSorter) Less(i, j int) bool
func (*DataSorter) Swap ¶
func (s *DataSorter) Swap(i, j int)
type SortByOption ¶
type SortByOption int
const ( SortCVE SortByOption = iota SortEPSS SortPercentile SortDate )
Click to show internal directories.
Click to hide internal directories.