gobar icon indicating copy to clipboard operation
gobar copied to clipboard

Cannot run gobar with the code snippet mentioned in the readme.md file.

Open 231tr0n opened this issue 3 years ago • 0 comments

while :; do date; sleep 1; done | ./gobar

I am getting this error when trying to run this command

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.(*Bar).Draw(0xc0000aa000, {0xc0001220a0, 0x1, 0x0?})
	/home/xeltron/go/pkg/mod/github.com/distatus/[email protected]/gobar.go:345 +0xb98
main.main()
	/home/xeltron/go/pkg/mod/github.com/distatus/[email protected]/gobar.go:565 +0x4b0

Can you please help me figure out what is the issue I am facing with while running this bar?

231tr0n avatar Oct 14 '22 16:10 231tr0n