Error map
reflect: call of reflect.Value.X on zero Value Go: panic: reflect: call of reflect.Value.Elem on zero Value
Go · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (8)
Go: panic: runtime error: invalid memory address or nil pointer dereference
The program used a pointer, map, interface or struct field that was nil — usually an uninitialised value or an ignored error.
Go: panic: assignment to entry in nil map
You wrote to a map that was declared but never initialised.
Go: json: cannot unmarshal string into Go struct field User.age of type int
The JSON value's type does not match the Go field type (string vs number, object vs array).
Go: panic: interface conversion: interface {} is string, not int
A type assertion `x.(T)` failed because the dynamic type of the interface is not T.
Go: runtime: goroutine stack exceeds 1000000000-byte limit — fatal error: stack overflow
Unbounded recursion consumed the goroutine's stack until it hit the 1 GB limit.
Go: panic: runtime error: index out of range [3] with length 3
Code accessed a slice, array or string element beyond its length.
Go: panic: runtime error: slice bounds out of range [:5] with capacity 3
A slice expression `s[a:b]` used bounds outside the slice's length or capacity.
Go: panic: runtime error: integer divide by zero
Integer division or modulo by zero.
Two steps away (10)
Segmentation fault (core dumped)
A program accessed memory it wasn’t allowed to, and the kernel killed it with SIGSEGV (exit code 139).
Go: fatal error: all goroutines are asleep - deadlock!
Every goroutine is blocked waiting (on a channel, mutex or WaitGroup), so the program can never continue.
Go: declared and not used: x / "fmt" imported and not used
Go refuses to compile code with unused local variables or unused imports.
Go: cannot assign to struct field users["bob"].Age in map
Map values are not addressable, so you cannot modify a field of a struct stored directly in a map.
Go: fatal error: concurrent map writes
Two goroutines wrote to the same map at the same time; the runtime detects it and aborts the program (not recoverable).
Go: fatal error: concurrent map read and map write
One goroutine read from a map while another wrote to it; the runtime aborts.
Go: assignment mismatch: 1 variable but os.Open returns 2 values
The number of variables on the left does not match the number of values the function returns.
Go: cannot refer to unexported name pkg.helper (undefined: pkg.helper)
You used a lowercase (unexported) identifier from another package; only capitalised names are visible outside their package.
Go: invalid character '<' looking for beginning of value
The decoder received something that is not JSON — often an HTML error page, an empty body or plain text.
Go: cannot use &Dog{} (value of type *Dog) as Animal value: *Dog does not implement Animal (missing method Speak)
A type was used as an interface but lacks a method or has it with a different signature or receiver type.
Map another error
Popular: 500403400ORA-009331064Critical errorFileNotFoundException assemblyTypeError