common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAllRequiredFields

func ContainsAllRequiredFields(fields map[string]string) bool

func ExtractFieldsStringWithRegexp

func ExtractFieldsStringWithRegexp(s string, r *regexp.Regexp) map[string]string

func GenericExtractFieldsStringWithRegexp added in v1.0.0

func GenericExtractFieldsStringWithRegexp[V any](s string, r *RegexWithValue[V]) map[string]string

func GetVersion added in v1.0.0

func GetVersion() string

func MatchesAnyRegexp added in v1.0.0

func MatchesAnyRegexp(r []*regexp.Regexp, s string) (bool, *regexp.Regexp)

func PrintVersion added in v0.2.6

func PrintVersion(commit string)

Types

type RegexWithValue added in v1.0.0

type RegexWithValue[V any] struct {
	Regexp *regexp.Regexp
	Value  V
}

func GenericMatchesAnyRegexp added in v1.0.0

func GenericMatchesAnyRegexp[V any](r []*RegexWithValue[V], s string) (bool, *RegexWithValue[V])

Jump to

Keyboard shortcuts

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