print

package
v0.0.0-...-ece29da Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package print have methods to print various eclectica info in style

Index

Constants

This section is empty.

Variables

View Source
var (

	// Gray color
	Gray = ansi.ColorCode("240")
	// White color
	White = ansi.ColorCode("white+b")
	// Reset ASCII-sequence
	Reset = ansi.ColorCode("reset")
	// Timeout for anything general
	Timeout = 200 * time.Millisecond
)

Functions

func ClosestLangWarning

func ClosestLangWarning(language, closest string)

ClosestLangWarning prints error message for the similar typed language

func CurrentVersion

func CurrentVersion(version string)

CurrentVersion prints version with the heart symbol in style

func Download

func Download(response *grab.Response, version string) string

Download continuously prints download info

func Error

func Error(err error)

Error prints error in style to stderr

func FnInStyleln

func FnInStyleln(name, entity string)

FnInStyleln prints header and text with style and newline char before and after

func Green

func Green(msg string)

Green prints stuff in console in green color

func InStyle

func InStyle(name, entity string)

InStyle prints header and text with style

func InStyleln

func InStyleln(name, entity string)

InStyleln prints header and text with style and newline char

func LastPrint

func LastPrint()

LastPrint prints the last newline only in those system that do not do newline char automatically

func Version

func Version(args ...interface{})

Version prints version in style

func Warning

func Warning(note, command string)

Warning prints warning and how to fix it in style

Types

This section is empty.

Directories

Path Synopsis
Package CustomSpinner provides spinner with additional custom logic
Package CustomSpinner provides spinner with additional custom logic
Package spinner provides essential (empty) spinner
Package spinner provides essential (empty) spinner

Jump to

Keyboard shortcuts

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