surveyext

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskConfirm

func AskConfirm(msg string, def bool, opts ...survey.AskOpt) (res bool, err error)

AskConfirm asks for confirmation on the terminal.

func NotIn added in v0.6.0

func NotIn(ss []string) survey.Validator

NotIn returns a validation function that returns an error if the value is in the given list.

func ValidateToken added in v0.2.0

func ValidateToken(val any) error

ValidateToken validates that the given input is a valid Axiom access token (personal or ingest).

func ValidateURL

func ValidateURL(val any) error

ValidateURL validates that the given input is a valid url.

Types

This section is empty.

Jump to

Keyboard shortcuts

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