utils

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskYN

func AskYN(msg string) bool

AskYN asks yes or no until got valid

func AutoPager

func AutoPager(data []byte) error

AutoPager automatically determines whether to use a pager for long output, and outputs it

func CreateFile

func CreateFile(fpath string, data []byte) error

CreateFile ensures the top dirs and creates a file

func EnsureDir

func EnsureDir(dir string) error

EnsureDir creates top dirs for a dir

func Panic

func Panic(msg string, err error, exitcode int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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