Giter Site home page Giter Site logo

kerogsgo's Introduction

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

Name Import In Out Desc
colors.[Colors] /colors N/A N/A Add colors to CLI
base.AsciiStart /base N/A N/A Add kerogs watermark
terminal.ClearScreen /terminal N/A N/A Clear cmd
terminal.CliReturn /terminal repeat int N/A return x line above
terminal.StopProgram /terminal N/A N/A Stop the program, but first wait for an interaction.
terminal.StopProgramMsg /terminal message string N/A Same as above, just add a custom message directly with
terminal.StopProgramErr /terminal errorReturn error, message string N/A Same as above, just you can add a custom message directly to it and also give the error.
filedir.FileMake /filedir name string, content string N/A make a file + write in

Colors

Call Name Code
colors.Reset Reset \033[0m
colors.Black Black \033[30m
colors.Red Red \033[31m
colors.Green Green \033[32m
colors.Yellow Yellow \033[33m
colors.Blue Blue \033[34m
colors.Magenta Magenta \033[35m
colors.Cyan Cyan \033[36m
colors.White White \033[37m
colors.Gray Gray \033[90m
colors.LightRed LightRed \033[91m
colors.LightGreen LightGreen \033[92m
colors.LightYellow LightYellow \033[93m
colors.LightBlue LightBlue \033[94m
colors.LightMagenta LightMagenta \033[95m
colors.LightCyan LightCyan \033[96m
colors.LightWhite LightWhite \033[97m
colors.Orange Orange \033[38;5;208m

kerogsgo's People

Contributors

kerogs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.