userinput

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Пакет userinput предоставляет функции для внутренней обработки пользовательского ввода

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNonInteractive

func IsNonInteractive() bool

Проверяет является ли стандратный ввод терминалом

func ReplacePrompt

func ReplacePrompt(outPath string, allFunc func(), negFunc func()) bool

Обрабатывает диалог замены файла

allFunc и negFunc принимают функции для действия в случае выбора всех файлов и негативном ответе

Если ответ был негативный функция возвращает true

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 🇻🇳