package
0.5.0
Repository: https://github.com/vadv/gopher-lua-libs.git
Documentation: pkg.go.dev

# README

pb GoDoc

Usage

local pb = require('pb')
local time = require('time')

local count = 100
local bar = pb.new(count)

bar:start()

for i=1, count, 1 do
  time.sleep(1)
  bar:increment()
end

bar:finish()

Configure progress bar

  • bar:configure({}) - change progress bar parameters. Avaliable options:
template - use custom template (Please see https://github.com/cheggaaa/pb/blob/master/v3/element.go for all available elements)
refresh_rate in ms (default 200ms)
writer (default stderr). Only supported value is `stdout`.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
Loader is the module loader function.
New (count) - total for progress bar.
Preload adds strings to the given Lua state's package.preload table.
No description provided by the author