MCPcopy Create free account
hub / github.com/Masterminds/semver / MarshalJSON

Method MarshalJSON

version.go:575–577  ·  view source on GitHub ↗

MarshalJSON implements JSON.Marshaler interface.

()

Source from the content-addressed store, hash-verified

573
574// MarshalJSON implements JSON.Marshaler interface.
575func (v Version) MarshalJSON() ([]byte, error) {
576 return json.Marshal(v.String())
577}
578
579// UnmarshalText implements the encoding.TextUnmarshaler interface.
580func (v *Version) UnmarshalText(text []byte) error {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected