- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,835 for panic2 (0.27 sec)
-
src/runtime/metrics/value.go
// // If v.Kind() != KindUint64, this method panics. func (v Value) Uint64() uint64 { if v.kind != KindUint64 { panic("called Uint64 on non-uint64 metric value") } return v.scalar } // Float64 returns the internal float64 value for the metric. // // If v.Kind() != KindFloat64, this method panics. func (v Value) Float64() float64 { if v.kind != KindFloat64 { panic("called Float64 on non-float64 metric value") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:59:11 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/language/tags.go
t, err := c.Parse(s) if err != nil { panic(err) } return t } // MustParseBase is like ParseBase, but panics if the given base cannot be parsed. // It simplifies safe initialization of Base values. func MustParseBase(s string) Base { b, err := ParseBase(s) if err != nil { panic(err) } return b } // MustParseScript is like ParseScript, but panics if the given script cannot be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/screenshots/pic2.png
pic2.png...
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 18 03:27:04 UTC 2021 - 1.6M bytes - Viewed (0) -
src/reflect/value.go
if f == 0 { panic(&ValueError{valueMethodName(), Invalid}) } // Assignable if addressable and not read-only. if f&flagRO != 0 { panic("reflect: " + valueMethodName() + " using value obtained using unexported field") } if f&flagAddr == 0 { panic("reflect: " + valueMethodName() + " using unaddressable value") } } // Addr returns a pointer value representing the address of v.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
src/internal/reflectlite/value.go
} return f.Name() } // mustBeExported panics if f records that the value was obtained using // an unexported field. func (f flag) mustBeExported() { if f == 0 { panic(&ValueError{methodName(), 0}) } if f&flagRO != 0 { panic("reflect: " + methodName() + " using value obtained using unexported field") } } // mustBeAssignable panics if f records that the value is not assignable,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 13.6K bytes - Viewed (0) -
src/runtime/panic_test.go
{"panicCustomFloat32", `panic: main.MyFloat32(-9.370000e+001)`}, {"panicCustomFloat64", `panic: main.MyFloat64(-9.370000e+001)`}, {"panicCustomInt", `panic: main.MyInt(93)`}, {"panicCustomInt8", `panic: main.MyInt8(93)`}, {"panicCustomInt16", `panic: main.MyInt16(93)`}, {"panicCustomInt32", `panic: main.MyInt32(93)`}, {"panicCustomInt64", `panic: main.MyInt64(93)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 1.7K bytes - Viewed (0) -
test/fixedbugs/issue32187.go
{"out of bounds", "", func() { _ = x == s[1] }}, {"nil pointer dereference #1", "", func() { _ = x == *p }}, // TODO(mdempsky): Restore "nil pointer dereference" check. The Go // spec doesn't mandate an order for panics (or even panic // messages), but left-to-right is less confusing to users. {"nil pointer dereference #2", "", func() { _ = *l == r[0] }}, {"nil pointer dereference #3", "", func() { _ = *l == any(r[0]) }}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 19 23:02:39 UTC 2022 - 1.5K bytes - Viewed (0) -
src/log/slog/value.go
} // Int64 returns v's value as an int64. It panics // if v is not a signed integer. func (v Value) Int64() int64 { if g, w := v.Kind(), KindInt64; g != w { panic(fmt.Sprintf("Value kind is %s, not %s", g, w)) } return int64(v.num) } // Uint64 returns v's value as a uint64. It panics // if v is not an unsigned integer. func (v Value) Uint64() uint64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
test/fixedbugs/issue16130.go
panic(fmt.Sprintf("got %T, expected runtime.Error", r)) } if !strings.Contains(re.Error(), "interface conversion") { panic(fmt.Sprintf("got %q, expected interface conversion error", re.Error())) } }() e := (interface{})(0) if _, ok := e.(I); ok { panic("unexpected interface conversion success") } fmt.Println(e.(I)) panic("unexpected interface conversion success")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 08 23:22:37 UTC 2016 - 948 bytes - Viewed (0) -
src/runtime/testdata/testprog/deadlock.go
}() panic("second panic") }() panic("first panic") } // Test case where a single defer recovers one panic but starts another panic. If // the second panic is never recovered, then the recovered first panic will still // appear on the panic stack (labeled '[recovered]') and the runtime stack. func RecursivePanic4() { defer func() { recover() panic("second panic") }() panic("first panic") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 27 20:44:24 UTC 2021 - 6.5K bytes - Viewed (0)