util

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Build information. Populated at build-time.

Functions

func AskUser

func AskUser(msg string) bool

func BuildContext

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func ContainsInt added in v1.0.2

func ContainsInt(slice []int, item int) bool

The slice must be sorted in ascending order

func ContainsString added in v1.0.2

func ContainsString(slice []string, item string) bool

The slice must be sorted in ascending order

func NewAssigneeIDPtrValue added in v1.0.1

func NewAssigneeIDPtrValue(p **gitlab.AssigneeIDValue) *assigneeIDPtrValue

func NewBoolPtrValue

func NewBoolPtrValue(p **bool) *boolPtrValue

func NewEnumPtrValue

func NewEnumPtrValue(p **string, options ...string) *enumPtrValue

func NewEnumValue

func NewEnumValue(p *string, options ...string) *enumValue

func NewIntPtrValue

func NewIntPtrValue(p **int) *intPtrValue

func NewLabelsPtrValue added in v1.0.1

func NewLabelsPtrValue(p **gitlab.Labels) *labelsPtrValue

func NewReviewerIDPtrValue added in v1.0.1

func NewReviewerIDPtrValue(p **gitlab.ReviewerIDValue) *reviewerIDPtrValue

func NewStringPtrValue

func NewStringPtrValue(p **string) *stringPtrValue

func NewTimePtrValue

func NewTimePtrValue(p **time.Time) *timePtrValue

func NewVisibilityPtrValue

func NewVisibilityPtrValue(p **gitlab.VisibilityValue) *visibilityPtrValue

func PrintVersion

func PrintVersion(program string) string

Print returns version information.

func VersionInfo

func VersionInfo() string

Info returns version, branch and revision information.

func VersionString

func VersionString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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