- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for nil (0.12 sec)
-
doc/go1.17_spec.html
<a href="#Predeclared_identifiers"><code>nil</code></a>; that case is selected when the expression in the TypeSwitchGuard is a <code>nil</code> interface value. There may be at most one <code>nil</code> case. </p> <p> Given an expression <code>x</code> of type <code>interface{}</code>, the following type switch: </p> <pre> switch i := x.(type) { case nil:
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
}) if n != len(name) { t.Errorf("expected %d frames, got %d", len(name), n) } for i := 0; i < n; i++ { f := runtime.FuncForPC(pc[i] - 1) // TODO: use runtime.CallersFrames if f == nil { t.Fatalf("expected non-nil Func for pc %d", pc[i]) } fname := f.Name() // Remove the prepended pathname from automatically // generated cgo function names. if strings.HasPrefix(fname, "_") {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0)