Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for EqualFold (0.15 sec)

  1. internal/config/bool-flag.go

    	case "1", "t", "T", "true", "TRUE", "True", "on", "ON", "On":
    		return true, nil
    	case "0", "f", "F", "false", "FALSE", "False", "off", "OFF", "Off":
    		return false, nil
    	}
    	if strings.EqualFold(str, "enabled") {
    		return true, nil
    	}
    	if strings.EqualFold(str, "disabled") {
    		return false, nil
    	}
    	return false, fmt.Errorf("ParseBool: parsing '%s': %w", str, strconv.ErrSyntax)
    }
    
    // ParseBoolFlag - parses string into BoolFlag.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Viewed (0)
Back to top