![]() |
|
[Help] Go Language - panic: runtime error: invalid memory address or nil pointer dereference - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Help] Go Language - panic: runtime error: invalid memory address or nil pointer dereference (/showthread.php?tid=6182083) |
Go Language - panic: runtime error: invalid memory address or nil pointer dereference - Lenovo - Nov 22, 2021 When I run my program written that was written in Go the following error occurs: Code [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x605acf]The updateCookies function looks like this: Code func updateCookies(jar *cookiejar.Jar, res *http.Response) {I am new to Go and need to fix this error, what is a solution for this problem? |