colors

package module
v0.0.0-...-641c37b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 4 Imported by: 7

README

colors-go Documentation

Install & Importing

go get github.com/iVitaliya/colors-go

import "github.com/iVitaliya/colors-go"
Current Allowed Color Types
Current Allowed Background Color Types
Current Allowed Formatting Color Types

Correct Use

package main

import (
  "fmt"
  "github.com/iVitaliya/colors-go"
)

func main() {
  // Bright
  fmt.Println(colors.BrightGreen("This is testing the Bright Green color"))
  
  // Dark
  fmt.Println(colors.Red("This is testing the Red color"))
  
  // Bright Background Color
  fmt.Println(colors.BgBrightYellow("This is testing the Bright Background Yellow color"))
  
  // Dark Background Color
  fmt.Println(colors.BgBlue("This is testing the Blue Background color"))
  
  // Format + Color
  fmt.Println(colors.Dim(colors.BrightYellow("This is bright Yellow")))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BgBlack

func BgBlack(str string) string

func BgBlue

func BgBlue(str string) string

func BgBrightBlack

func BgBrightBlack(str string) string

func BgBrightBlue

func BgBrightBlue(str string) string

func BgBrightCyan

func BgBrightCyan(str string) string

func BgBrightGreen

func BgBrightGreen(str string) string

func BgBrightMagenta

func BgBrightMagenta(str string) string

func BgBrightRed

func BgBrightRed(str string) string

func BgBrightWhite

func BgBrightWhite(str string) string

func BgBrightYellow

func BgBrightYellow(str string) string

func BgCyan

func BgCyan(str string) string

func BgGreen

func BgGreen(str string) string

func BgMagenta

func BgMagenta(str string) string

func BgRed

func BgRed(str string) string

func BgWhite

func BgWhite(str string) string

func BgYellow

func BgYellow(str string) string

func Black

func Black(str string) string

func Blue

func Blue(str string) string

func Bold

func Bold(str string) string

func BrightBlack

func BrightBlack(str string) string

func BrightBlue

func BrightBlue(str string) string

func BrightCyan

func BrightCyan(str string) string

func BrightGreen

func BrightGreen(str string) string

func BrightMagenta

func BrightMagenta(str string) string

func BrightRed

func BrightRed(str string) string

func BrightWhite

func BrightWhite(str string) string

func BrightYellow

func BrightYellow(str string) string

func Cyan

func Cyan(str string) string

func Dim

func Dim(str string) string

func Gray

func Gray(str string) string

func Green

func Green(str string) string

func Hidden

func Hidden(str string) string

func Inverse

func Inverse(str string) string

func Italic

func Italic(str string) string

func Magenta

func Magenta(str string) string

func Red

func Red(str string) string

func Reset

func Reset(str string) string

func StrikeThrough

func StrikeThrough(str string) string

func Underline

func Underline(str string) string

func White

func White(str string) string

func Yellow

func Yellow(str string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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