func ParsePriority(str string) (Priority, error) {
	var code int
	if _, err := fmt.Sscanf(str, "<%d>", &code); err != nil {
		return Priority{}, err
	}
	p := decodePriority(code)
	return p, p.Validate()
}
// ParsePriority converts a priority string back into a Priority.
ParsePriority converts a priority string back into a Priority.
// ParsePriority converts a priority string back into a Priority .
func ParsePriority(str string) (Priority, error) {
	var code int
	if _, err := fmt.Sscanf(str, "<%d>", &code); err != nil {
		return Priority{}, err
	}
	p := decodePriority(code)
	return p, p.Validate()
}
func ParsePriority ( str string ) ( Priority , error ) { var code int if _ , err := fmt . Sscanf ( str , " " , & code ) ; err != nil { return Priority { } , err } p := decodePriority ( code ) return p , p . Validate ( ) }
ParsePriority converts a priority string back into a Priority.
ParsePriority converts a priority string back into a Priority .