log

package
v0.0.0-...-839b23a Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

Bar est une barre de chargement à afficher dans la console

func (*Bar) Finish

func (bar *Bar) Finish()

Finish permet d'afficher une nouvelle ligne pour éviter les artefacts graphiques

func (*Bar) NewOption

func (bar *Bar) NewOption(start int, total int)

NewOption initialise une barre ainsi que son symbole

func (*Bar) NewOptionWithGraph

func (bar *Bar) NewOptionWithGraph(start int, total int, graph string)

NewOptionWithGraph initialise la barre avec un symbole de chargement spécifique

func (*Bar) Play

func (bar *Bar) Play(current int)

Play permet d'afficher la barre à un temps donné en fonction de la valeur donnée

func (*Bar) PlayNext

func (bar *Bar) PlayNext()

PlayNext permet d'afficher la barre au prochain tick

Jump to

Keyboard shortcuts

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