utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION_PATTERN string = `[v]?((\\d+\\.)?(\\d+\\.)?(\\*|\\d+))`

Variables

This section is empty.

Functions

func CombineErrors added in v1.0.3

func CombineErrors(label string, messages []string) error

func Contains added in v1.0.1

func Contains(vs []int, t int) bool

func Filter added in v1.0.1

func Filter(vs []string, f func(string, int) bool) []string

func FindWorkingDir

func FindWorkingDir() string

func IndexInt added in v1.0.1

func IndexInt(vs []int, t int) int

func IsDir

func IsDir(name string) bool

func Map added in v1.0.1

func Map(vs []string, f func(string, int) string) []string

func RefOfString added in v1.0.3

func RefOfString(val string) *string

func Split added in v1.0.1

func Split(str string, sep string) []string

func StandardizeVersion added in v1.0.3

func StandardizeVersion(version string) string

func UrlJoin

func UrlJoin(pdp string, basePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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