- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,907 for IsSwitch (0.12 sec)
-
src/crypto/tls/auth.go
signer, ok := cert.PrivateKey.(crypto.Signer) if !ok { return fmt.Errorf("tls: certificate private key (%T) does not implement crypto.Signer", cert.PrivateKey) } switch pub := signer.Public().(type) { case *ecdsa.PublicKey: switch pub.Curve { case elliptic.P256(): case elliptic.P384(): case elliptic.P521(): default: return fmt.Errorf("tls: unsupported certificate curve (%s)", pub.Curve.Params().Name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:45:37 UTC 2024 - 10K bytes - Viewed (0) -
src/net/iprawsock_posix.go
// license that can be found in the LICENSE file. //go:build unix || js || wasip1 || windows package net import ( "context" "syscall" ) func sockaddrToIP(sa syscall.Sockaddr) Addr { switch sa := sa.(type) { case *syscall.SockaddrInet4: return &IPAddr{IP: sa.Addr[0:]} case *syscall.SockaddrInet6: return &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))} } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 3.9K bytes - Viewed (0) -
src/os/exec_unix.go
"time" ) const ( // Special values for Process.Pid. pidUnset = 0 pidReleased = -1 ) func (p *Process) wait() (ps *ProcessState, err error) { // Which type of Process do we have? switch p.mode { case modeHandle: // pidfd return p.pidfdWait() case modePID: // Regular PID return p.pidWait() default: panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/memcombine.go
y := a[1].store.Args[1] switch x.Op { case OpTrunc64to8, OpTrunc64to16, OpTrunc64to32, OpTrunc32to8, OpTrunc32to16, OpTrunc16to8: x = x.Args[0] default: return nil } switch y.Op { case OpTrunc64to8, OpTrunc64to16, OpTrunc64to32, OpTrunc32to8, OpTrunc32to16, OpTrunc16to8: y = y.Args[0] default: return nil } var x2 *Value switch x.Op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 19:45:41 UTC 2024 - 18.4K bytes - Viewed (0) -
pkg/config/schema/codegen/templates/clients.go.tmpl
{{- range .Packages}} {{.ImportName}} "{{.PackageName}}" {{- end}} ) func GetWriteClient[T runtime.Object](c ClientGetter, namespace string) ktypes.WriteAPI[T] { switch any(ptr.Empty[T]()).(type) { {{- range .Entries }} {{- if not .Resource.Synthetic }} case *{{ .IstioAwareClientImport }}.{{ .Resource.Kind }}:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 13:57:51 UTC 2024 - 3.8K bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
want := "OK\n" if got != want { t.Fatalf("expected %q, but got:\n%s", want, got) } } func TestCgoCallbackGC(t *testing.T) { t.Parallel() switch runtime.GOOS { case "plan9", "windows": t.Skipf("no pthreads on %s", runtime.GOOS) } if testing.Short() { switch { case runtime.GOOS == "dragonfly": t.Skip("see golang.org/issue/11990") case runtime.GOOS == "linux" && runtime.GOARCH == "arm":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (1) -
src/cmd/compile/internal/types2/const.go
conf = check.conf } sizeof := func(T Type) int64 { s := conf.sizeof(T) return s } switch { case isInteger(typ): x := constant.ToInt(x) if x.Kind() != constant.Int { return false } if rounded != nil { *rounded = x } if x, ok := constant.Int64Val(x); ok { switch typ.kind { case Int: var s = uint(sizeof(typ)) * 8 return int64(-1)<<(s-1) <= x && x <= int64(1)<<(s-1)-1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 7.5K bytes - Viewed (0) -
src/text/template/parse/parse.go
for t.peekNonSpace().typ != itemEOF { n := t.textOrAction() switch n.Type() { case nodeEnd, nodeElse: return list, n } list.append(n) } t.errorf("unexpected EOF") return } // textOrAction: // // text | comment | action func (t *Tree) textOrAction() Node { switch token := t.nextNonSpace(); token.typ { case itemText: return t.newText(token.pos, token.val)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
switch (dtype.code) { case DLDataTypeCode::kDLBool: if (dtype.bits != 8) { return tensorflow::errors::InvalidArgument( "Only DLPack bools of bitwidth 8 are supported, got: ", dtype.bits); } *tf_dtype = TF_DataType::TF_BOOL; return absl::OkStatus(); case DLDataTypeCode::kDLUInt: switch (dtype.bits) { case 8:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/config/schema/codegen/templates/kind.go.tmpl
{{- else }} {{.Resource.Identifier}} {{- end }} {{- end }} ) func (k Kind) String() string { switch k { {{- range .Entries }} case {{.Resource.Identifier}}: return "{{.Resource.Kind}}" {{- end }} default: return "Unknown" } } func MustFromGVK(g config.GroupVersionKind) Kind { switch g { {{- range .Entries }} {{- if not (or (eq .Resource.Identifier "Address") (eq .Resource.Identifier "DNSName")) }}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 27 07:19:38 UTC 2024 - 862 bytes - Viewed (0)