mirror of
https://github.com/schollz/croc.git
synced 2024-11-24 16:23:47 +03:00
update progressbar
This commit is contained in:
parent
62e7629466
commit
24e0573116
2
go.mod
2
go.mod
@ -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
|
||||||
|
@ -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() {
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user