util

package
v0.0.0-...-ead0699 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInterrupted       = errors.New("interrupted")
	ErrMaxLengthExceeded = fmt.Errorf("maximum byte limit (%v) exceeded", maxLength)
)
View Source
var ColumnFmt = color.New(color.FgYellow).SprintfFunc()
View Source
var HeaderFmt = color.New(color.FgGreen, color.Underline).SprintfFunc()

Functions

func GetServer

func GetServer() string

func GetSinceTime

func GetSinceTime(t time.Time) string

func GetUsersPassword

func GetUsersPassword(msg string, masked bool, r FieldReader, w io.Writer) ([]byte, error)

func Info

func Info(text string, args ...any)

Types

type FieldReader

type FieldReader interface {
	io.Reader
	Fd() uintptr
}

Jump to

Keyboard shortcuts

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