Documentation ¶
Index ¶
- Variables
- func Contains[T comparable](list []T, item T) bool
- func FileExists(path string) bool
- func GlobExists(path string) bool
- func HandleErr(err error)
- func HandleFileOverwrite(path string, contents string, selection string)
- func Insert[T any](a []T, i int, item T) []T
- func KeyInterrupt()
- func Quit(message string)
- func ReadFile(path string) string
- func RunCmd(cmd string, args ...string) (string, error)
- func Ternary[T any](cond bool, whenTrue T, whenFalse T) T
- func ToString[T any](obj T) string
- func WriteFile(path string, data string, overwrite bool) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var RepoUrl = "https://github.com/github/gitignore"
Functions ¶
func Contains ¶
func Contains[T comparable](list []T, item T) bool
func FileExists ¶
func GlobExists ¶
func HandleFileOverwrite ¶
func KeyInterrupt ¶
func KeyInterrupt()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.