util

package
v0.0.0-...-b544036 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(input []byte) []byte

ComputeHash computes the hash of the given bytes

func ComputeStringHash

func ComputeStringHash(input string) []byte

ComputeStringHash computes the hash of the given string

func GetSortedKeys

func GetSortedKeys(m interface{}) []string

GetSortedKeys returns the keys of the map in a sorted order. This function assumes that the keys are string

func GetValuesBySortedKeys

func GetValuesBySortedKeys(mapPtr interface{}, listPtr interface{})

GetValuesBySortedKeys returns the values of the map (mapPtr) in the list (listPtr) in the sorted order of key of the map This function assumes that the mapPtr is a pointer to a map and listPtr is is a pointer to a list. Further type of keys of the map are assumed to be string and the types of the values of the maps and the list are same

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL