Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Grants (0.14 sec)

  1. internal/config/bool-flag.go

    		b := BoolFlag(true)
    		if s == "" {
    			// Empty string is treated as valid.
    			*bf = b
    		} else if b, err = ParseBoolFlag(s); err == nil {
    			*bf = b
    		}
    	}
    
    	return err
    }
    
    // FormatBool prints stringified version of boolean.
    func FormatBool(b bool) string {
    	if b {
    		return "on"
    	}
    	return "off"
    }
    
    // ParseBool returns the boolean value represented by the string.
    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