code: func (p ParanoidMode) Validate() error {
  	switch p {
  	case NotParanoid, CheckPresence, CheckIntegrity:
  		return nil
  	default:
  		return fmt.Errorf("unrecognized paranoid mode %q", p)
  	}
  }
docs: // Validate returns an error if the mode is unrecognized.