internal

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskCleanup added in v0.3.4

func AskCleanup() bool

func AskOverwrite

func AskOverwrite() string

func Contains

func Contains[T comparable](list []T, item T) bool

func FileExists

func FileExists(path string) bool

func GIGen added in v0.3.5

func GIGen()

func GlobExists

func GlobExists(path string) bool

func HandleFileOverwrite

func HandleFileOverwrite(path string, contents string)

func Insert

func Insert[T any](a []T, i int, item T) []T

func KeyInterrupt added in v0.3.5

func KeyInterrupt()

func Quit

func Quit(message string)

func ReadFile

func ReadFile(path string) string

func RemoveCacheDir added in v0.3.4

func RemoveCacheDir()

func RunCmd

func RunCmd(cmd string, args ...string) (string, error)

func Ternary

func Ternary[T any](cond bool, whenTrue T, whenFalse T) T

func ToString

func ToString[T any](obj T) string

func UNUSED

func UNUSED(x ...interface{})

UNUSED allows unused variables to be included in Go programs

func WriteFile

func WriteFile(path string, data string, overwrite bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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