utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotationsAsMap

func GetAnnotationsAsMap(annotations parser.Annotations) map[string][]string

func IsBasic

func IsBasic(name string) bool

func IsContainer

func IsContainer(name string) bool

func ParseAlias

func ParseAlias(tname string) (prefix, name string)

func ParseArr

func ParseArr(str string) ([]string, error)

ParseArr parses a string such as [xx,xx,xx,xxx] into string arr

func ParseKV

func ParseKV(str string) (map[string]string, error)

ParseKV parses a string such as {a:b,c:d} into a string map

func ParsePrefix

func ParsePrefix(filepath string) (prefix string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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