Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/joaosoft/progress-bar

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/joaosoft/progress-bar

  • v0.0.0-20230612103642-7d2293627151
  • Source
  • Go
  • Socket score

Version published
Created
Source

progress-bar

Build Status | codecov | Go Report Card | GoDoc

A simple progress bar implementation.

If i miss something or you have something interesting, please be part of this project. Let me know! My contact is at the end.

With support for

  • title
  • comment
  • align
  • style
  • symbol
  • writer
  • delay

Go

go get github.com/joaosoft/progress-bar

Usage

This examples are available in the project at progress-bar/examples

Code

package main

import (
	pb "github.com/joaosoft/progress-bar"
	"time"
)

func main() {
	progressBar := pb.New(pb.WithDelay(time.Millisecond * 500))
	progressBar.Title("Installation").Right().Style(pb.StyleBold, pb.StyleBgHiBlue)

	progressBar.Comment("text 1").Right().Style(pb.StyleFgHiWhite)
	progressBar.Add(20)

	progressBar.Title("Installation").Center()

	progressBar.Comment("text 2").Center()
	progressBar.Add(20)

	progressBar.Title("Installation").Left()

	progressBar.Comment("text 3").Left()
	progressBar.Add(20)

	progressBar.Comment("text 4")
	progressBar.Add(20)
	progressBar.Add(-20)
	progressBar.Add(20)

	progressBar.Comment("text 5")
	progressBar.Add(20)
}
Result:
Installation
[ ████████████████████████████████████████████████████████████████████████████████████████████████████ ]
text 5

Known issues

Follow me at

Facebook: https://www.facebook.com/joaosoft

LinkedIn: https://www.linkedin.com/in/jo%C3%A3o-ribeiro-b2775438/

If you have something to add, please let me know joaosoft@gmail.com

FAQs

Package last updated on 12 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc