util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

func CompareSemVers

func CompareSemVers(a, b string) (int, error)

func ExtractTarTo

func ExtractTarTo(gzipStream io.Reader, path string) error

func FindClosest

func FindClosest(s string, ss []string) mo.Option[string]

func PrintErasable

func PrintErasable(msg string) (eraser func())

PrintErasable prints a string that can be erased by calling a returned function.

func Quantify

func Quantify(n int, singular, plural string) string

func ResolveTilde

func ResolveTilde(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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