Categorygithub.com/kerogs/KerogsGo
repositorypackage
1.1.1
Repository: https://github.com/kerogs/kerogsgo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Go terminal colors

KerogsGo is just another function I use often. It's simply intended to simplify my life.

Use

  1. import
go get "github.com/kerogs/KerogsGo"
  1. use
import "github.com/kerogs/KerogsGo/[Import]"

Func

NameImportInOutDesc
colors.[Colors]/colorsN/AN/AAdd colors to CLI
base.AsciiStart/baseN/AN/AAdd kerogs watermark
terminal.ClearScreen/terminalN/AN/AClear cmd
terminal.CliReturn/terminalrepeat intN/Areturn x line above
terminal.StopProgram/terminalN/AN/AStop the program, but first wait for an interaction.
terminal.StopProgramMsg/terminalmessage stringN/ASame as above, just add a custom message directly with
terminal.StopProgramErr/terminalerrorReturn error, message stringN/ASame as above, just you can add a custom message directly to it and also give the error.
filedir.FileMake/filedirname string, content stringN/Amake a file + write in

Colors

CallNameCode
colors.ResetReset\033[0m
colors.BlackBlack\033[30m
colors.RedRed\033[31m
colors.GreenGreen\033[32m
colors.YellowYellow\033[33m
colors.BlueBlue\033[34m
colors.MagentaMagenta\033[35m
colors.CyanCyan\033[36m
colors.WhiteWhite\033[37m
colors.GrayGray\033[90m
colors.LightRedLightRed\033[91m
colors.LightGreenLightGreen\033[92m
colors.LightYellowLightYellow\033[93m
colors.LightBlueLightBlue\033[94m
colors.LightMagentaLightMagenta\033[95m
colors.LightCyanLightCyan\033[96m
colors.LightWhiteLightWhite\033[97m
colors.OrangeOrange\033[38;5;208m