loggy

package module
v0.0.0-...-dc1041e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 1 Imported by: 0

README

Loggy

Better fmt.Println for go. Inspired by consola

package main

import "github.com/vclemenzi/loggy"

func main() {
  loggy.Info("Hello, world!", "This is a log message.")
  loggy.Error("Hello, world!", "This is a log message.")
  loggy.Warn("Hello, world!", "This is a log message.")
  loggy.Success("Hello, world!", "This is a log message.")
  loggy.Box("Hello, world! This is a log message.")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(v string)

func Error

func Error(v ...interface{})

func GetPrefix

func GetPrefix(text string, color string, labelColor string) string

func Info

func Info(v ...interface{})

func Success

func Success(v ...interface{})

func Warn

func Warn(v ...interface{})

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