Skip to content

encoding/gob: non-nil empty slices encoded/decoded as nil #10905

@robzan8

Description

@robzan8

Take an empty slice (non nil), encode it with gob, decode it again and you get a nil slice:
https://play.golang.org/p/WI8NCohVua
(I only tested on the playground for now)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions