</bugz loading .
As the name suggests this error occurs when you declare a variable but not use it anywhere in the golang / go code.
See articlesyntax error: non-declaration statement outside function body
See articleIn golang , duration is a different type unlike other languages. As you cannot multiply variables two different types the code crashes with invalid operation: n * time.Millisecond (mismatched types int and time.Duration) error.
See articleEOF
See articleIn go, when a nil pointer gets dereferenced, the code crashes (panics) with a runtime error ( invalid memeory address or nil pointer dereference). To avoid this error try to check if there are any nil pointers and handle them...
See articleIntroduction to Slices - Golang
See articleassignment mismatch: x variables but function returns y values - golang
See articleHow to convert String to Int - Golang
See article3 ways to convert int to string in golang
See article