Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 6,074 for case1 (0.06 sec)

  1. src/time/format_rfc3339.go

    	// Explicitly check for these edge cases.
    	// See https://go.dev/issue/4556 and https://go.dev/issue/54580.
    	num2 := func(b []byte) byte { return 10*(b[0]-'0') + (b[1] - '0') }
    	switch {
    	case b[n0+len("9999")] != '-': // year must be exactly 4 digits wide
    		return b, errors.New("year outside of range [0,9999]")
    	case b[len(b)-1] != 'Z':
    		c := b[len(b)-len("Z07:00")]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 19:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/concepts.md

    Of course, there are some cases where there's no problem in running the previous steps multiple times, in that case, it's a lot easier to handle.
    
    !!! tip
        Also, keep in mind that depending on your setup, in some cases you **might not even need any previous steps** before starting your application.
    
        In that case, you wouldn't have to worry about any of this. 🤷
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    func ucast(i uint64, s sizedTestData) uint64 {
    	switch s.name {
    	case "uint32":
    		return uint64(uint32(i))
    	case "uint16":
    		return uint64(uint16(i))
    	case "uint8":
    		return uint64(uint8(i))
    	}
    	return i
    }
    
    // icast casts a signed int to the size in s
    func icast(i int64, s sizedTestData) int64 {
    	switch s.name {
    	case "int32":
    		return int64(int32(i))
    	case "int16":
    		return int64(int16(i))
    	case "int8":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/profile-dump.go

    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    	var output string
    	switch outputFormat {
    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/math/sin.go

    		PI4B = 3.77489470793079817668e-8  // 0x3e64442d00000000,
    		PI4C = 2.69515142907905952645e-15 // 0x3ce8469898cc5170,
    	)
    	// special cases
    	switch {
    	case x == 0 || IsNaN(x):
    		return x // return ±0 || NaN()
    	case IsInf(x, 0):
    		return NaN()
    	}
    
    	// make argument positive but save the sign
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  6. test/fixedbugs/bug449.go

    // return values into account, so in certain cases gc-generated
    // code will read a random bool from the stack as the result of
    // the comparison.
    // This program generates a lot of equality tests and hopes to
    // catch this.
    // NOTE: this program assumes comparing instance of T and T's
    // underlying []byte will make gc emit calls to runtime.equal,
    // and if gc optimizes this case, then the test will no longer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 01 03:02:46 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/gofmt/rewrite.go

    		return !pattern.IsValid() && !val.IsValid()
    	}
    	if pattern.Type() != val.Type() {
    		return false
    	}
    
    	// Special cases.
    	switch pattern.Type() {
    	case identType:
    		// For identifiers, only the names need to match
    		// (and none of the other *ast.Object information).
    		// This is a common case, handle it all here instead
    		// of recursing down any further via reflection.
    		p := pattern.Interface().(*ast.Ident)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    	switch T := T.(type) {
    	case *aliases.Alias:
    		return find(obj, aliases.Unalias(T), path, seen)
    	case *types.Basic, *types.Named:
    		// Named types belonging to pkg were handled already,
    		// so T must belong to another package. No path.
    		return nil
    	case *types.Pointer:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Slice:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionTest.groovy

            failure.initCauses([cause1, cause2])
    
            expect:
            failure.cause == cause1
            failure.causes == [cause1, cause2]
        }
    
        def printStackTraceWithMultipleCauses() {
            RuntimeException cause1 = new RuntimeException('cause1')
            RuntimeException cause2 = new RuntimeException('cause2')
            def failure = new TestMultiCauseException('message', [cause1, cause2])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. src/internal/trace/internal/oldtrace/order.go

    	// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19).
    
    	switch ev.Type {
    	case EvGoCreate:
    		g = ev.Args[0]
    		init = gState{0, gDead}
    		next = gState{1, gRunnable}
    		return
    	case EvGoWaiting, EvGoInSyscall:
    		g = ev.G
    		init = gState{1, gRunnable}
    		next = gState{2, gWaiting}
    		return
    	case EvGoStart, EvGoStartLabel:
    		g = ev.G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top