Documentation ¶
Index ¶
- Variables
- func ConvertToMap(obj interface{}) (map[string]interface{}, error)
- func GetInt64Len(a int64) int
- func GetPercent(a, b float64) int
- func GetStatus(s string) string
- func ResetNumberBase(a, b float64) (float64, float64)
- func SortByDistribution(data []interface{}, sortColumn string, asc bool)
- func SortByNode(data []interface{}, sortColumn string, asc bool)
- func SortByString(data []interface{}, sortColumn string, asc bool)
- func Transfer(a, b interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CMPDashboardAddLabel cptype.OperationKey = "addLabel" CMPDashboardRemoveLabel cptype.OperationKey = "deleteLabel" NothingToBeDoneErr = errors.New("nothing to be done") TypeNotAvailableErr = errors.New("type not available") ResourceNotFoundErr = errors.New("resource type not available") //util error PtrRequiredErr = errors.New("ptr is required") )
Functions ¶
func ConvertToMap ¶
ConvertToMap transfer any struct to map
func GetInt64Len ¶
func GetPercent ¶
func SortByDistribution ¶
SortByDistribution sort by percent
func SortByNode ¶
SortByNode sort by node struct
func SortByString ¶
SortByString sort by string value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.