code: func StrToBool(s string) (bool, error) {
  	clean := strings.TrimSpace(s)
  
  	if regexp.MustCompile(`(?i)^(1|yes|true|y|t)$`).MatchString(clean) {
  		return true, nil
  	}
  
  	if regexp.MustCompile(`(?i)^(0|no|false|n|f)$`).MatchString(clean) {
  		return false, nil
  	}
  
  	return false, fmt.Errorf("cannot convert string value '%s' into a boolean", clean)
  }
docs: // StrToBool converts a typical mcollective boolianish string to bool