package utils
import "github.com/intel/goresctrl/pkg/utils"
Index ¶
Functions ¶
func DumpJSON ¶
func DumpJSON(r interface{}) string
DumpJSON dumps a json-compatible struct in human-readable form
func SortUint64s ¶
func SortUint64s(a []uint64)
SortUint64s sorts a slice of uint64 in increasing order.
Types ¶
type Uint64Slice ¶
type Uint64Slice []uint64
Uint64Slice implmenents sort.Interface for a slice of uint64.
func (Uint64Slice) Len ¶
func (s Uint64Slice) Len() int
Len returns the length of an UintSlice
func (Uint64Slice) Less ¶
func (s Uint64Slice) Less(i, j int) bool
Less returns true if element at 'i' is less than the element at 'j'
func (Uint64Slice) Swap ¶
func (s Uint64Slice) Swap(i, j int)
Swap swaps the values of two elements
Source Files ¶
- Version
- v0.1.0
- Published
- Jun 23, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 days ago –
Tools for package owners.