utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "development"
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
	GoVersion = runtime.Version()
)

Functions

func BuildContext

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func Contains

func Contains(l []string, s string) bool

func ContainsInt

func ContainsInt(l []int, i int) bool

func GetResultsFromRegex

func GetResultsFromRegex(pattern, tmpl, content string) (string, error)

func MatchPattern

func MatchPattern(pattern, tmpl, version string) (bool, string, error)

func MeetConstraint

func MeetConstraint(constraint, ver string) (bool, error)

func RemoveDuplicateStr

func RemoveDuplicateStr(strSlice []string) []string

func VersionInfo

func VersionInfo() string

Info returns version, branch and revision information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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