coat

package module
v0.0.0-...-21845ed Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 4 Imported by: 0

README

coat

stdout and stderr coating with color, time and muffler included

how to

NewConsole first parameter is the domain or name of the console, second one is the silence option
package main

func main() {
	console := NewConsole("test", false)
    console.Log("coated")
    console.Err("uncoated")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Log func(v ...interface{})
	Err func(v ...interface{})
}

Console : interface to formated terminal output

func NewConsole

func NewConsole(name string, silence bool) *Console

NewConsole returns a formated output console

Jump to

Keyboard shortcuts

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