ui

package
v0.0.0-...-c891ed9 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Overview

Package ui helps one to make their output look colorful, import this package and start using the methods this package implements to make your output colorful

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string) string

Debug will be just defining the color for debugging.

func Error

func Error(msg string) string

Error will be just defining the color for errors.

func Info

func Info(msg string) string

Info will be just defining the color for informations.

func Warn

func Warn(msg string) string

Warn will be just defining the color for warnings.

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

Color will just a wrap of the struct Attribute of package color.

type NeuronUi

type NeuronUi struct {
	*UiWriter
}

NeuronUi is just a wrap of the struct UiWriter of the same package. For the people who doubts why this wraps the struct of the same package. We are plannig to add few more components under NeuronUi.

func (NeuronUi) NeuronSaysItsDebug

func (n NeuronUi) NeuronSaysItsDebug(msg string)

NeuronSaysItsDebug will be defining the color while printing warnings.

func (NeuronUi) NeuronSaysItsError

func (n NeuronUi) NeuronSaysItsError(msg string)

NeuronSaysItsError will be defining the color while printing errors.

func (NeuronUi) NeuronSaysItsInfo

func (n NeuronUi) NeuronSaysItsInfo(msg string)

NeuronSaysItsInfo will be defining the color while printing informations.

func (NeuronUi) NeuronSaysItsWarn

func (n NeuronUi) NeuronSaysItsWarn(msg string)

NeuronSaysItsWarn will be defining the color while printing warnings.

type UiWriter

type UiWriter struct {
	Writer io.Writer
}

UiWriter holds the writer for the cli ui.

Jump to

Keyboard shortcuts

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