util

package
v0.0.0-...-153285a Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStrSlice

func CopyStrSlice(s []string) []string

CopyStrSlice returns a copy of the slice of strings.

func FilterList

func FilterList(l []string, rl []string) []string

FilterArgs returns a copy of "l" with elements from "toRemove" filtered out.

func GetMajorVersion

func GetMajorVersion(serverVersion version.Info) (int, error)

func GetMinorVersion

func GetMinorVersion(serverVersion version.Info) (int, error)

func RemoveAllElements

func RemoveAllElements(s []string, r string) []string

RemoveAllElements removes all elements from "s" which match the string "r".

func VersionMatch

func VersionMatch(v1 version.Info, v2 version.Info) bool

versionMatch returns true if the Major and Minor versions match for the passed version infos v1 and v2. Examples:

1.11.7 == 1.11.9
1.11.7 != 1.10.7

Types

This section is empty.

Jump to

Keyboard shortcuts

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