utils

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToPublicKey

func BytesToPublicKey(pub []byte) (*rsa.PublicKey, error)

BytesToPublicKey parse a byteArray to a rsa.PublicKey

func NormalizeMap

func NormalizeMap(mp map[interface{}]interface{}) (map[string]interface{}, error)

NormalizeMap convert a map[interface{}]interface{} to a map[string]interface{}

func ReverseStrings

func ReverseStrings(versions []string)

ReverseStrings reverse the string slice

func ReverseVersion

func ReverseVersion(versions []*version.Version)

ReverseVersion reverse the version slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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