userinput

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

User Input

📖 Description

A package to get user input, navigate using the arrow key, and able to edit input.


💻 Import the package

import "github.com/allancapistrano/user-input"

📝 Example

package main

import (
	"fmt"

	"github.com/allancapistrano/user-input"
)

func main() {
	input := userinput.GetUserInput("Enter the text to be displayed: ")

	fmt.Println("\nInput: " + input)
}

👨💻 Author

Allan Capistrano
Allan Capistrano

My socials:

Github icon   Linkedin icon   Email icon


🙏 Support

Please ⭐ this repository if this project is useful or has helped you.


⚖ Licença

MIT LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserInput

func GetUserInput(message string, showMessageAndInput bool) string

Show the message and wait for user input. You can print the message with user input by passing true to showMessageAndInput.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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