prefix

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 1 Imported by: 0

README

prefix

Animation

package main

import "github.com/pterm/pterm"

func main() {
	// Enable debug messages.
	pterm.EnableDebugMessages()

	pterm.Debug.Println("Hello, World!")   // Print Debug.
	pterm.Info.Println("Hello, World!")    // Print Info.
	pterm.Success.Println("Hello, World!") // Print Success.
	pterm.Warning.Println("Hello, World!") // Print Warning.
	pterm.Error.Println("Hello, World!")   // Print Error.
	// Temporarily set Fatal to false, so that the CI won't crash.
	pterm.Fatal.WithFatal(false).Println("Hello, World!") // Print Fatal.
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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