Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for dtoi (0.04 sec)

  1. pkg/config/security/security.go

    		info.Port = 80
    	case "https":
    		info.UseSSL = true
    		info.Port = 443
    	default:
    		return JwksInfo{}, fmt.Errorf("URI scheme %q is not supported", u.Scheme)
    	}
    
    	if u.Port() != "" {
    		info.Port, err = strconv.Atoi(u.Port())
    		if err != nil {
    			return JwksInfo{}, err
    		}
    	}
    	info.Hostname = host.Name(u.Hostname())
    	info.Scheme = u.Scheme
    
    	return info, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/nettest/nettest.go

    		// Technical Level < 2.
    		out, _ := exec.Command("oslevel", "-s").Output()
    		if len(out) >= len("7200-XX-ZZ-YYMM") { // AIX 7.2, Tech Level XX, Service Pack ZZ, date YYMM
    			ver := string(out[:4])
    			tl, _ := strconv.Atoi(string(out[5:7]))
    			unStrmDgramEnabled = ver > "7200" || (ver == "7200" && tl >= 2)
    		}
    	default:
    		unStrmDgramEnabled = true
    	}
    }
    
    func unixStrmDgramEnabled() bool {
    	stackOnce.Do(probeStack)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/slices/example_test.go

    	// 3 > 2: 1
    }
    
    func ExampleCompareFunc() {
    	numbers := []int{0, 43, 8}
    	strings := []string{"0", "0", "8"}
    	result := slices.CompareFunc(numbers, strings, func(n int, s string) int {
    		sn, err := strconv.Atoi(s)
    		if err != nil {
    			return 1
    		}
    		return cmp.Compare(n, sn)
    	})
    	fmt.Println(result)
    	// Output:
    	// 1
    }
    
    func ExampleContainsFunc() {
    	numbers := []int{0, 42, -10, 8}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/shake.go

    //
    //
    // SHAKE implementation is based on FIPS PUB 202 [1]
    // cSHAKE implementations is based on NIST SP 800-185 [2]
    //
    // [1] https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
    // [2] https://doi.org/10.6028/NIST.SP.800-185
    
    import (
    	"encoding/binary"
    	"hash"
    	"io"
    )
    
    // ShakeHash defines the interface to hash functions that support
    // arbitrary-length output. When used as a plain [hash.Hash], it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. pkg/kubelet/util/manager/cache_based_manager.go

    		if err != nil {
    			return time.Duration(0), false
    		}
    		if node != nil && node.Annotations != nil {
    			if value, ok := node.Annotations[v1.ObjectTTLAnnotationKey]; ok {
    				if intValue, err := strconv.Atoi(value); err == nil {
    					return time.Duration(intValue) * time.Second, true
    				}
    			}
    		}
    		return time.Duration(0), false
    	}
    }
    
    func (s *objectStore) isObjectFresh(data *objectData) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top