Ad Space — Top Banner

Go

Go errors explained in plain English. Find your error below.

Error Codes

cannot range over Go Compiler Error The Go 'cannot range over' error means you are using a range loop on a type that … no new variables on left side of := Go Compiler Error This Go error means you used := (short variable declaration) but all the … strconv: parsing error Go Runtime Error A Go strconv parsing error occurs when you try to convert a string to a number … missing return Go Programming Language The 'missing return at end of function' error in Go means the Go compiler cannot … send on closed channel Go Programming Language The 'send on closed channel' panic in Go occurs when you try to send a value to … type does not implement interface Go Programming Language This Go error means you are passing a value type (T) where the interface … assignment to entry in nil map Go Programming Language You are trying to write to a map that was never initialized.<br>Declaring a map … concurrent map writes Go Programming Language Go maps are not safe for concurrent use from multiple goroutines.<br>Two … context deadline exceeded Go Programming Language This error means an operation took too long and hit its timeout.<br>Go's context … integer divide by zero Go Programming Language Go panics immediately when you divide an integer by zero.<br>This is a runtime … interface conversion panic Go Programming Language Go panics when you assert an interface to the wrong concrete type.<br>The value … invalid memory address Go Programming Language Go panics when code tries to read or write memory that has no valid … slice bounds out of range Go Programming Language Go panics when you try to access a slice index that doesn't exist.<br>Your index … stack overflow Go Programming Language Go panics with a stack overflow when a goroutine's call stack grows too … too many open files Go Programming Language Your program has opened more files (or network connections) than the OS … deadlock Go Programming Language A deadlock in Go means every goroutine in your program is blocked and waiting — … cannot use as type Go Programming Language The Go error 'cannot use X as type Y' means you passed or assigned a value of … import cycle not allowed Go Programming Language Go's 'import cycle not allowed' error means two or more packages import each … multiple-value in single-value context Go Programming Language This Go error means you are using a function that returns multiple values in a … nil pointer dereference Go Programming Language A nil pointer dereference in Go means your code tried to access a value through … too many arguments Go Programming Language Go's 'too many arguments in call to' error means you called a function with more … undefined Go Programming Language A Go 'undefined' error means your code references a variable, function, or type … runtime error: index out of range Go Programming Language Index out of range is a runtime panic in Go — it means you tried to access a … interface conversion: type assertion failed Go Programming Language This panic means you tried to assert that an interface value holds a specific … panic: send on closed channel Go Programming Language This panic means a goroutine tried to send data to a channel that has already …