util

package
v1.0.6-rc177 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 17 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 MarshalYamlWithJsonTags added in v1.0.2

func MarshalYamlWithJsonTags(v interface{}) ([]byte, error)

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