util

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue       = "\u001b[38;5;45m"
	Grey       = "\u001b[38;5;252m"
	Red        = "\u001b[38;5;42m"
	White      = "\u001b[38;5;255m"
	Background = "\u001b[48;5;239m"
	Reset      = "\u001b[0m"
	Reverse    = "\u001b[7m"
)

These are messed up, something is something else

Functions

func Exists

func Exists(path string) bool

func ReadFile

func ReadFile(filepath string) []byte

func ReadInfoYaml

func ReadInfoYaml(filepath string, m map[string][]string)

func ReadYaml

func ReadYaml(filepath string, m map[string]map[string][]string)

func TerminalColor

func TerminalColor(text, color string) string
func TerminalLink(url, text, color string) string

func WriteFile

func WriteFile(filepath string, data []byte)

func WriteYaml

func WriteYaml(filepath string, m interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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