Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for etcd (0.14 sec)

  1. src/bytes/example_test.go

    func ExampleTrimSpace() {
    	fmt.Printf("%s", bytes.TrimSpace([]byte(" \t\n a lone gopher \n\t\r\n")))
    	// Output: a lone gopher
    }
    
    func ExampleTrimSuffix() {
    	var b = []byte("Hello, goodbye, etc!")
    	b = bytes.TrimSuffix(b, []byte("goodbye, etc!"))
    	b = bytes.TrimSuffix(b, []byte("gopher"))
    	b = append(b, bytes.TrimSuffix([]byte("world!"), []byte("x!"))...)
    	os.Stdout.Write(b)
    	// Output: Hello, world!
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. src/builtin/builtin.go

    // for any Go type, but represents the same type for any given function
    // invocation.
    type Type1 int
    
    // IntegerType is here for the purposes of documentation only. It is a stand-in
    // for any integer type: int, uint, int8 etc.
    type IntegerType int
    
    // FloatType is here for the purposes of documentation only. It is a stand-in
    // for either float type: float32 or float64.
    type FloatType float32
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    	b.uint16(uint16(records))        // number of entries total
    	b.uint32(uint32(size))           // size of directory
    	b.uint32(uint32(offset))         // start of directory
    	b.uint16(uint16(len(w.comment))) // byte size of EOCD comment
    	if _, err := w.cw.Write(buf[:]); err != nil {
    		return err
    	}
    	if _, err := io.WriteString(w.cw, w.comment); err != nil {
    		return err
    	}
    
    	return w.cw.w.(*bufio.Writer).Flush()
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    	}
    	pkg = &apiPackage{tpkg, files}
    
    	if usePkgCache {
    		pkgCache[key] = pkg
    	}
    
    	w.imported[name] = pkg
    	return pkg, nil
    }
    
    // pushScope enters a new scope (walking a package, type, node, etc)
    // and returns a function that will leave the scope (with sanity checking
    // for mismatched pushes & pops)
    func (w *Walker) pushScope(name string) (popFunc func()) {
    	w.scope = append(w.scope, name)
    	return func() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. src/archive/tar/stat_unix.go

    	h.Gid = int(sys.Gid)
    	if doNameLookups {
    		// Best effort at populating Uname and Gname.
    		// The os/user functions may fail for any number of reasons
    		// (not implemented on that platform, cgo not enabled, etc).
    		if u, ok := userMap.Load(h.Uid); ok {
    			h.Uname = u.(string)
    		} else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil {
    			h.Uname = u.Username
    			userMap.Store(h.Uid, h.Uname)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top