tailscale.comtailscale.com/util/prompt Index | Files

package prompt

import "tailscale.com/util/prompt"

Package prompt provides a simple way to prompt the user for input.

Index

Functions

func YesNo

func YesNo(msg string) bool

YesNo takes a question and prompts the user to answer the question with a yes or no. It appends a y/n to the message.

Source Files

prompt.go

Version
v1.86.4 (latest)
Published
Aug 7, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
6 hours ago

Tools for package owners.