Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for Sname (0.14 sec)

  1. src/net/rpc/server.go

    const logRegisterError = false
    
    func (server *Server) register(rcvr any, name string, useName bool) error {
    	s := new(service)
    	s.typ = reflect.TypeOf(rcvr)
    	s.rcvr = reflect.ValueOf(rcvr)
    	sname := name
    	if !useName {
    		sname = reflect.Indirect(s.rcvr).Type().Name()
    	}
    	if sname == "" {
    		s := "rpc.Register: no service name for type " + s.typ.String()
    		log.Print(s)
    		return errors.New(s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/multicluster_test.go

    }
    
    func createMultiClusterSecret(k8s kube.Client, sname, cname string) error {
    	data := map[string][]byte{}
    	secret := v1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      sname,
    			Namespace: testSecretNameSpace,
    			Labels: map[string]string{
    				multicluster.MultiClusterSecretLabel: "true",
    			},
    		},
    		Data: map[string][]byte{},
    	}
    
    	data[cname] = []byte("Test")
    	secret.Data = data
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/internal/xcoff/file.go

    }
    
    // Section returns the first section with the given name, or nil if no such
    // section exists.
    // Xcoff have section's name limited to 8 bytes. Some sections like .gosymtab
    // can be trunked but this method will still find them.
    func (f *File) Section(name string) *Section {
    	for _, s := range f.Sections {
    		if s.Name == name || (len(name) > 8 && s.Name == name[:8]) {
    			return s
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/data.go

    				return isz == 0 // 0-sized < zerobase
    			}
    			if checkSize {
    				if isz != jsz {
    					return isz < jsz
    				}
    			} else {
    				iname := sl[i].name
    				jname := sl[j].name
    				if iname != jname {
    					return iname < jname
    				}
    			}
    			return si < sj
    		})
    	} else {
    		// PCLNTAB was built internally, and already has the proper order.
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf.go

    // type with the specified name.
    func (d *dwctxt) find(name string) loader.Sym {
    	return d.tmap[name]
    }
    
    func (d *dwctxt) mustFind(name string) loader.Sym {
    	r := d.find(name)
    	if r == 0 {
    		Exitf("dwarf find: cannot find %s", name)
    	}
    	return r
    }
    
    func (d *dwctxt) adddwarfref(sb *loader.SymbolBuilder, t loader.Sym, size int) {
    	switch size {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loader/loader.go

    		osym := r.Sym(i)
    		var name string
    		var v int
    		if kind != hashed64Def && kind != hashedDef { // we don't need the name, etc. for hashed symbols
    			name = osym.Name(r.Reader)
    			v = abiToVer(osym.ABI(), r.version)
    		}
    		gi := st.addSym(name, v, r, i, kind, osym)
    		r.syms[i] = gi
    		if kind == nonPkgDef && osym.IsLinkname() && r.DataSize(i) == 0 && strings.Contains(name, ".") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/lib.go

    			}
    		}
    		pname := filepath.Join(libdir, name+".a")
    		if ctxt.Debugvlog != 0 {
    			ctxt.Logf("searching for %s.a in %s\n", name, pname)
    		}
    		if _, err := os.Stat(pname); err == nil {
    			return addlibpath(ctxt, "internal", "internal", pname, name, "", zerofp)
    		}
    	}
    
    	if name == "runtime" {
    		Exitf("error: unable to find runtime.a")
    	}
    	ctxt.Logf("warning: unable to find %s.a\n", name)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  8. operator/pkg/name/name.go

    	s := string(n)
    	return ComponentName(strings.ToUpper(s[0:1]) + s[1:])
    }
    
    // UserFacingComponentName returns the name of the given component that should be displayed to the user in high
    // level CLIs (like progress log).
    func UserFacingComponentName(name ComponentName) string {
    	ret, ok := userFacingComponentNames[name]
    	if !ok {
    		return "Unknown"
    	}
    	return ret
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    		name = name[:maxNameLen-len(bad)] + bad
    	}
    	return name
    }
    
    // DecodeStack expands the (compressed) stack encoded in the counter name.
    func DecodeStack(ename string) string {
    	if !strings.Contains(ename, "\n") {
    		return ename // not a stack counter
    	}
    	lines := strings.Split(ename, "\n")
    	var lastPath string // empty or ends with .
    	for i, line := range lines {
    		path, rest := cutLastDot(line)
    		if len(path) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/cmd/fix/main_test.go

    					out, out2)
    				tdiff(t, "first", out, "second", out2)
    			}
    		})
    	}
    }
    
    func tdiff(t *testing.T, aname, a, bname, b string) {
    	t.Errorf("%s", diff.Diff(aname, []byte(a), bname, []byte(b)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top