You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It sounds like this is working as intended. encoding/gob provides extension points for users to write optional, custom encoding methods (see https://golang.org/pkg/encoding/gob/#GobEncoder), and you accidentally implemented that interface.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In package:
What did you expect to see?
I had a code:
end it was creating endless loop from
back to calling the the function:
What did you see instead?
I traced the code and found that my function:
has the same name as the package GOB function:
The fix was to rename my function to a different name but still this is a bug.
The text was updated successfully, but these errors were encountered: