common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsCharFromCharset

func ContainsCharFromCharset(input string, charset string) bool

func PromptInput

func PromptInput(prompt string) (string, error)

PromptInput prompts the user the prompt in the terminal. It reads the user input and returns it.

func PromptPassword

func PromptPassword() (string, error)

PromptPassword prompts the user to enter a password. The input is not echoed to the terminal.

func PromptPasswordWithPrecedingText

func PromptPasswordWithPrecedingText(text string) (string, error)

func StringInSlice

func StringInSlice(target string, slice []string) bool

StringInSlice returns true if target is in slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳