util

package
v0.3.92-rc119 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyValuePairs

func CreateKeyValuePairs(m map[string]string, prefix string, suffix string) ([]byte, error)

func EqualLists

func EqualLists(a, b []string) bool

func GetFileFromUrl

func GetFileFromUrl(fileUrl string) ([]byte, error)

func GetNewestVersion

func GetNewestVersion(versions []string) (string, error)

func GetValueFromStruct

func GetValueFromStruct(keyWithDots string, object interface{}) (string, error)

func IsClientModule

func IsClientModule(module model.Module) bool

func MapToYamlBytes

func MapToYamlBytes(m map[string]interface{}) ([]byte, error)

func MapValues

func MapValues[M ~map[K]V, K comparable, V any](m M) []V

func MinInt

func MinInt(a, b int) int

func TarGzWrite

func TarGzWrite(inDirPath string) ([]byte, error)

func ToList

func ToList(value string) []string

func YamlBytesToMap

func YamlBytesToMap(b []byte) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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