MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Must

Function Must

pkg/util/constraint/version.go:100–106  ·  view source on GitHub ↗

Must is a helper that wraps a call to a function returning (*Version, error) and panics if error is non-nil.

(v *Version, err error)

Source from the content-addressed store, hash-verified

98// Must is a helper that wraps a call to a function returning (*Version, error)
99// and panics if error is non-nil.
100func Must(v *Version, err error) *Version {
101 if err != nil {
102 panic(err)
103 }
104
105 return v
106}
107
108// Compare compares this version to another version. This
109// returns -1, 0, or 1 if this version is smaller, equal,

Callers 1

CoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected