util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoRights  uint8 = 0
	Executing uint8 = 1 // read file meta-data
	Writing   uint8 = 2
	Reading   uint8 = 4
)

Variables

This section is empty.

Functions

func AskPassword

func AskPassword(prompt string) string

func AskPasswordIfEmpty

func AskPasswordIfEmpty(prompt, value string) string

func AskString

func AskString(prompt string) string

func AskStringIfEmpty

func AskStringIfEmpty(prompt, value string) string

func Check

func Check(err error)

func Confitm

func Confitm()

Types

type Perm

type Perm struct {
	Owner  uint8
	Group  uint8
	Others uint8
}

func NewPerm

func NewPerm(owner, group, others uint8) Perm

func (Perm) String

func (m Perm) String() string

Jump to

Keyboard shortcuts

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