Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Convert_Slice_string_To_bool (0.57 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/conversion.go

    	if err != nil {
    		return err
    	}
    	*out = i
    	return nil
    }
    
    // Convert_Slice_string_To_bool will convert a string parameter to boolean.
    // Only the absence of a value (i.e. zero-length slice), a value of "false", or a
    // value of "0" resolve to false.
    // Any other value (including empty string) resolves to true.
    func Convert_Slice_string_To_bool(in *[]string, out *bool, s conversion.Scope) error {
    	if len(*in) == 0 {
    		*out = false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 02 09:39:03 UTC 2019
    - 5.2K bytes
    - Viewed (0)
Back to top