utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright © 2024 Federico Juretich <fedejuret@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSelectPromt

func GetSelectPromt(label string, items []string) (int, string, error)

func GetSpinner

func GetSpinner(suffix string, color string) *yacspin.Spinner

func GetStringPromt

func GetStringPromt(label string) (string, error)

func GetTimeAgo

func GetTimeAgo() timeago.Config

Types

type BellSkipper

type BellSkipper struct{}

func (*BellSkipper) Close

func (bs *BellSkipper) Close() error

Close implements an io.WriterCloser over os.Stderr.

func (*BellSkipper) Write

func (bs *BellSkipper) Write(b []byte) (int, error)

Write implements an io.WriterCloser over os.Stderr, but it skips the terminal bell character.

Jump to

Keyboard shortcuts

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