func MustParse(str string) Version {
	ver, err := NewVersion([]byte(str))
	if err != nil {
		panic(err.Error())
	}
	return ver
}
// MustParse is NewVersion for strings, and panics on errors.
//
// Use this in tests or with constants, e. g. whenever you control the input.
//
// This is a convenience function for a cloud plattform provider.
MustParse is NewVersion for strings, and panics on errors.

Use this in tests or with constants, e. g. whenever you control the input.

This is a convenience function for a cloud plattform provider.
// MustParse is NewVersion for strings and panics on errors . // // Use this in tests or with constants e . g . whenever you control the input . // // This is a convenience function for a cloud plattform provider .
func MustParse(str string) Version {
	ver, err := NewVersion([]byte(str))
	if err != nil {
		panic(err.Error())
	}
	return ver
}
func MustParse ( str string ) Version { ver , err := NewVersion ( [ ] byte ( str ) ) if err != nil { panic ( err . Error ( ) ) } return ver }
MustParse is NewVersion for strings, and panics on errors.
MustParse is NewVersion for strings and panics on errors .