func ParseOriginType(value string) (OriginType, error) {
	for ot, str := range originTypes {
		if value == str {
			return ot, nil
		}
	}
	const originTypeInvalid OriginType = -1
	return originTypeInvalid, errors.Errorf("unrecognized origin type %q", value)
}
// ParseOriginType converts a string to an OriginType or fails if
// not able. It round-trips with String().
ParseOriginType converts a string to an OriginType or fails if
not able. It round-trips with String().
// ParseOriginType converts a string to an OriginType or fails if // not able . It round - trips with String () .
func ParseOriginType(value string) (OriginType, error) {
	for ot, str := range originTypes {
		if value == str {
			return ot, nil
		}
	}
	const originTypeInvalid OriginType = -1
	return originTypeInvalid, errors.Errorf("unrecognized origin type %q", value)
}
func ParseOriginType ( value string ) ( OriginType , error ) { for ot , str := range originTypes { if value == str { return ot , nil } } const originTypeInvalid OriginType = - 1 return originTypeInvalid , errors . Errorf ( " " , value ) }
ParseOriginType converts a string to an OriginType or fails if
not able.
ParseOriginType converts a string to an OriginType or fails if not able .