- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 4,191 for switchn (0.21 sec)
-
src/go/constant/value.go
// to avoid unnecessary heap allocations. switch y.(type) { case intVal: switch x1 := x.(type) { case int64Val: return i64toi(x1), y } case ratVal: switch x1 := x.(type) { case int64Val: return i64tor(x1), y case intVal: return itor(x1), y } case floatVal: switch x1 := x.(type) { case int64Val: return i64tof(x1), y
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
pkg/webhooks/validation/controller/controller.go
if !c.dryRunOfInvalidConfigRejected { if rejected, reason := c.isDryRunOfInvalidConfigRejected(); !rejected { scope.Infof("Not ready to switch validation to fail-closed: %v", reason) return false } scope.Info("Endpoint successfully rejected invalid config. Switching to fail-close.") c.dryRunOfInvalidConfigRejected = true // Sync all webhooks; this ensures if we have multiple webhooks all of them are updated
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 28 16:52:19 UTC 2024 - 11.3K bytes - Viewed (0) -
src/go/printer/testdata/statements.golden
use(x) } } // Formatting of switch-statement headers. func _() { switch { } switch { } // no semicolon printed switch expr { } switch expr { } // no semicolon printed switch expr { } // no parens printed switch expr { } // no semicolon and parens printed switch x := expr; { default: use( x) } switch x := expr; expr { default: use(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 12 18:18:12 UTC 2014 - 8K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue43110.go
type P *struct{} func _() { // want an error even if the switch is empty var a struct{ _ func() } switch a /* ERROR "cannot switch on a" */ { } switch a /* ERROR "cannot switch on a" */ { case a: // no follow-on error here } // this is ok because f can be compared to nil var f func() switch f { } switch f { case nil: } switch (func())(nil) { case nil: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 794 bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt
line + getAgentOptions("\$APP_HOME").joinToString(separator = " ", prefix = "\" ", postfix = "\"") { // Wrap the agent switch in double quotes, as the expanded APP_HOME may contain spaces. // The joined line is enclosed in double quotes too, so double quotes here must be escaped. "\\\"$it\\\""
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 24 10:25:27 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/gofmt/testdata/typeswitch.golden
type switch header or in the case. See also issue 4470. */ package p func f() { var x interface{} switch x.(type) { // should remain the same } switch x.(type) { // should become: switch x.(type) { } switch x.(type) { // should remain the same case int: } switch x.(type) { // should become: switch x.(type) { case int: } switch x.(type) { // should remain the same case []int: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 15 17:17:30 UTC 2022 - 1.4K bytes - Viewed (0) -
test/typeparam/issue51522b.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 19:30:33 UTC 2022 - 730 bytes - Viewed (0) -
src/vendor/golang.org/x/sys/cpu/cpu_arm64.go
} switch extractBits(isar0, 16, 19) { case 1: ARM64.HasCRC32 = true } switch extractBits(isar0, 20, 23) { case 2: ARM64.HasATOMICS = true } switch extractBits(isar0, 28, 31) { case 1: ARM64.HasASIMDRDM = true } switch extractBits(isar0, 32, 35) { case 1: ARM64.HasSHA3 = true } switch extractBits(isar0, 36, 39) { case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 3.9K bytes - Viewed (0) -
src/internal/types/testdata/check/stmt0.go
func typeswitches() { var i int var x interface{} switch x.(type) {} switch (x /* ERROR "outside type switch" */ .(type)) {} switch x.(type) { default: default /* ERROR "multiple defaults" */ : } switch x /* ERROR "declared and not used" */ := x.(type) {} switch _ /* ERROR "no new variable on left side of :=" */ := x.(type) {} switch x := x.(type) { case int: var y int = x _ = y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 19K bytes - Viewed (0) -
test/fixedbugs/issue9608.dir/issue9608.go
fail() } } // Test dead code elimination in ordinary switch statements func init() { const x = 0 switch x { case 1: fail() } switch 1 { case x: fail() } switch { case false: fail() } const a = "a" switch a { case "b": fail() } const snowman = '☃' switch snowman { case '☀': fail() } const zero = float64(0.0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 05:12:39 UTC 2016 - 1K bytes - Viewed (0)