Sergey Cherepanov

Results 31 comments of Sergey Cherepanov

You can register a new pb.Element ```go pb.RegisterElement("myColor", pb.ElementFunc(func(state *pb.State, args ...string) string { for _, arg := range args { return color.New(color.BgHiGreen).Sprint(arg) } return "" }), false) tmpl :=...

Did you check it with the Windows command line or powershell? Because it could be different for IDE terminal

It's absolutely safe to update progressBar from different goroutines.

Hi, thank you! There are two ways ```go // first way if !isatty.IsTerminal(os.Stdout.Fd()) { bar.SetRefreshRate(time.Minute) // set an desired update interval } // second way if !isatty.IsTerminal(os.Stdout.Fd()) { // should...

https://github.com/anyproto/any-store is not a replacement MongoDB, it's planned to be mostly client-side db

> > https://github.com/anyproto/any-store is not a replacement MongoDB, it's planned to be mostly client-side db > > Cool, what do you think about https://github.com/FerretDB/embedded-example > > It's embeddable, built on...