Skip to content

xXA2005/ab5-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ab5 logging package

installation

run go get github.com/xXA2005/ab5-logging to install the package

usage

package main

import (
	"errors"
	"fmt"

	ab5 "github.com/xXA2005/ab5-logging"
)

func main() {
	logo := `
 █████╗ ██████╗ ███████╗   ██╗    ██╗████████╗███████╗
██╔══██╗██╔══██╗██╔════╝   ██║    ██║╚══██╔══╝██╔════╝
███████║██████╔╝███████╗   ██║ █╗ ██║   ██║   █████╗
██╔══██║██╔══██╗╚════██║   ██║███╗██║   ██║   ██╔══╝
██║  ██║██████╔╝███████║██╗╚███╔███╔╝   ██║   ██║
╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝ ╚══╝╚══╝    ╚═╝   ╚═╝     `
	ab5.Error(errors.New("error"))
	ab5.Success("success")
	ab5.Log("log")
	ab5.Warn("warning")
	fmt.Println(ab5.Horizontal(0, 0, 0, 100, 255, 50, logo), ab5.Reset) // from (0,0,0) to (100,255,50)
	fmt.Println(ab5.Vertical(100, 50, 255, 255, 20, 20, logo), ab5.Reset) // from (100,50,255) to (255,20,20)

}

give star on repo ok thanks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages