kprogress

package
v1.0.4-Realize Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

* 包kprogress提供了对进度相关的封装及描述

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Progress

func Progress(now int64, gross int64, hook func(now int64, gross int64, progress float64, finish bool))

根据now和gross通过百分率计算进度保留两位小数并反馈到hook中。

Types

This section is empty.

Jump to

Keyboard shortcuts

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