Skip to content

Is zero value of sermver.Version safely used? #264

@your-diary

Description

@your-diary

As far as I tested, the zero value of semver.Version represents 0.0.0, which is a valid semver version, but is it safe to use this value?

It is possible that the value looks like 0.0.0 but its internal representation is somehow in uninitialized state and thus it is unsafe to use the zero value.

The document says nothing about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions