Whose Error Is It?
Go printed this
panic: runtime error: invalid memory address or nil pointer dereference
What it meansYour program dereferenced a nil pointer, for example calling a method or reading a field through a pointer that was never set.
The first thing to checkUse the stack trace line to see which pointer is nil; often an error was ignored and the returned value is nil, so handle err before using it.