func (p IDPrefix) ValidateSingle() error {
	switch len(p) {
	case 0:
		return nil
	case 1:
		if p[0] >= 'g' && p[0] <= 'z' {
			return nil
		}
	}

	return errors.Errorf("invalid prefix, must be empty or a single letter between 'g' and 'z'")
}
// ValidateSingle returns an error if a given prefix is invalid.
ValidateSingle returns an error if a given prefix is invalid.
// ValidateSingle returns an error if a given prefix is invalid .
func (p IDPrefix) ValidateSingle() error {
	switch len(p) {
	case 0:
		return nil
	case 1:
		if p[0] >= 'g' && p[0] <= 'z' {
			return nil
		}
	}
	return errors.Errorf("invalid prefix, must be empty or a single letter between 'g' and 'z'")
}
func ( p IDPrefix ) ValidateSingle ( ) error { switch len ( p ) { case 0 : return nil case 1 : if p [ 0 ] >= 'g' && p [ 0 ] <= 'z' { return nil } } return errors . Errorf ( " " ) }
ValidateSingle returns an error if a given prefix is invalid.
ValidateSingle returns an error if a given prefix is invalid .