1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

update progressbar

This commit is contained in:
Zack Scholl 2018-10-17 10:20:09 -07:00
parent 62e7629466
commit 24e0573116
4 changed files with 3 additions and 4 deletions

2
go.mod
View File

@ -12,7 +12,7 @@ require (
github.com/schollz/mnemonicode v1.0.1 github.com/schollz/mnemonicode v1.0.1
github.com/schollz/pake v1.0.2 github.com/schollz/pake v1.0.2
github.com/schollz/peerdiscovery v1.2.2 github.com/schollz/peerdiscovery v1.2.2
github.com/schollz/progressbar/v2 v2.5.3 github.com/schollz/progressbar/v2 v2.6.0
github.com/schollz/spinner v0.0.0-20180925172146-6bbc5f7804f9 github.com/schollz/spinner v0.0.0-20180925172146-6bbc5f7804f9
github.com/schollz/utils v1.0.0 github.com/schollz/utils v1.0.0
github.com/stretchr/testify v1.2.2 github.com/stretchr/testify v1.2.2

View File

@ -8,7 +8,7 @@ import (
"github.com/schollz/croc/src/models" "github.com/schollz/croc/src/models"
"github.com/schollz/croc/src/relay" "github.com/schollz/croc/src/relay"
"github.com/schollz/croc/src/zipper" "github.com/schollz/croc/src/zipper"
"github.com/schollz/progressbar" "github.com/schollz/progressbar/v2"
) )
func init() { func init() {

View File

@ -24,7 +24,7 @@ import (
"github.com/schollz/croc/src/utils" "github.com/schollz/croc/src/utils"
"github.com/schollz/croc/src/zipper" "github.com/schollz/croc/src/zipper"
"github.com/schollz/pake" "github.com/schollz/pake"
"github.com/schollz/progressbar" progressbar "github.com/schollz/progressbar/v2"
"github.com/schollz/spinner" "github.com/schollz/spinner"
"github.com/tscholl2/siec" "github.com/tscholl2/siec"
) )

View File

@ -80,7 +80,6 @@ func main() {
go func(done chan bool) { go func(done chan bool) {
for { for {
fmt.Println(cr.FileInfo, cr.Bar)
if cr.FileInfo.SentName != "" { if cr.FileInfo.SentName != "" {
labels[0].UpdateTextFromGoroutine(fmt.Sprintf("Sending %s", cr.FileInfo.SentName)) labels[0].UpdateTextFromGoroutine(fmt.Sprintf("Sending %s", cr.FileInfo.SentName))
} }