utils

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfUrl

func CheckIfUrl(str string) bool

func PromptGetInput

func PromptGetInput(label string, err error, flag ValidationFlags) string

func PromptGetSelect

func PromptGetSelect(items []string, label string) string

Types

type ValidationFlags

type ValidationFlags string
const (
	IsPwd      ValidationFlags = "isPwd"
	IsURL      ValidationFlags = "isURL"
	IsIPorFQDN ValidationFlags = "isIPorFQDN"
	IsString   ValidationFlags = "isString"
)

Jump to

Keyboard shortcuts

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