Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAllProductIds

func FetchAllProductIds() []string

func InSlice

func InSlice(values []string, wantedVal string) bool

func MillisToDuration

func MillisToDuration(timeInMillis int64) time.Duration

func PromptAndWaitForAnyKey

func PromptAndWaitForAnyKey(promptPrefix string)

Disaply a message and wait for any key to be entered to continue

func RunInteractiveMenu

func RunInteractiveMenu(selectionHeader string, selectionLabel string, values []string) (string, error)

func SliceToCsv

func SliceToCsv(values []string) string

func ValidateArgument

func ValidateArgument(argumentName string, wantedVal string, allValues []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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