Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 185 for iota (0.04 sec)

  1. test/fixedbugs/issue33555.go

    	if err := ioutil.WriteFile(fn, buf.Bytes(), 0644); err != nil {
    		return err
    	}
    
    	out, err := exec.Command("go", "run", fn).CombinedOutput()
    	if err != nil {
    		return err
    	}
    
    	want := strconv.Itoa(count + 1)
    	if got := string(bytes.TrimSpace(out)); got != want {
    		return fmt.Errorf("got %q want %q", got, want)
    	}
    
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/os/user/user.go

    }
    
    // UnknownUserIdError is returned by [LookupId] when a user cannot be found.
    type UnknownUserIdError int
    
    func (e UnknownUserIdError) Error() string {
    	return "user: unknown userid " + strconv.Itoa(int(e))
    }
    
    // UnknownUserError is returned by [Lookup] when
    // a user cannot be found.
    type UnknownUserError string
    
    func (e UnknownUserError) Error() string {
    	return "user: unknown user " + string(e)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    		}
    		return &ast.ReturnStmt{
    			Results: []ast.Expr{&ast.BinaryExpr{
    				Op: token.ADD,
    				X:  &ast.Ident{Name: "DW_ABRV_PUTVAR_START"},
    				Y:  &ast.BasicLit{Kind: token.INT, Value: strconv.Itoa(abbrevs[abbrev])}}}}
    	}
    	if pvacfg.attr != "" {
    		return pvacfgvisitnode(pvacfg.then, tag, append(path, pvacfg), abbrevs)
    	} else if pvacfg.cond != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. test/typeparam/listimp2.dir/main.go

    	checkList(&l2, []interface{}{2})
    }
    
    // Test the Transform function.
    func TestTransform() {
    	l1 := a.New[int]()
    	l1.PushBack(1)
    	l1.PushBack(2)
    	l2 := a.Transform(l1, strconv.Itoa)
    	checkList(l2, []interface{}{"1", "2"})
    }
    
    func main() {
    	TestList()
    	TestExtending()
    	TestRemove()
    	TestIssue4103()
    	TestIssue6349()
    	TestMove()
    	TestZeroList()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. src/net/http/triv.go

    	n  int
    }
    
    // This makes Counter satisfy the [expvar.Var] interface, so we can export
    // it directly.
    func (ctr *Counter) String() string {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	return strconv.Itoa(ctr.n)
    }
    
    func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	switch req.Method {
    	case "GET":
    		ctr.n++
    	case "POST":
    		var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    	if len(record) != size {
    		size = len(record)
    		record = strconv.Itoa(size) + " " + k + "=" + v + "\n"
    	}
    	return record, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. src/os/user/cgo_listgroups_unix.go

    		if err := groupRetry(u.Username, nameC, userGID, &gidsC, &n); err != nil {
    			return nil, err
    		}
    	}
    	gidsC = gidsC[:n]
    	gids := make([]string, 0, n)
    	for _, g := range gidsC[:n] {
    		gids = append(gids, strconv.Itoa(int(g)))
    	}
    	return gids, nil
    }
    
    // groupRetry retries getGroupList with much larger size for n. The result is
    // stored in gids.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. src/debug/dwarf/typeunit.go

    		if n != Offset(uint32(n)) {
    			b.error("type unit length overflow")
    			return b.err
    		}
    		hdroff := b.off
    		vers := int(b.uint16())
    		if vers != 4 {
    			b.error("unsupported DWARF version " + strconv.Itoa(vers))
    			return b.err
    		}
    		var ao uint64
    		if !dwarf64 {
    			ao = uint64(b.uint32())
    		} else {
    			ao = b.uint64()
    		}
    		atable, err := d.parseAbbrev(ao, vers)
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/crypto/des/cipher.go

    	"internal/byteorder"
    	"strconv"
    )
    
    // The DES block size in bytes.
    const BlockSize = 8
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/des: invalid key size " + strconv.Itoa(int(k))
    }
    
    // desCipher is an instance of DES encryption.
    type desCipher struct {
    	subkeys [16]uint64
    }
    
    // NewCipher creates and returns a new [cipher.Block].
    func NewCipher(key []byte) (cipher.Block, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/runtime/trace2map_test.go

    		m.Reset()
    	}
    }
    
    func TestTraceMapConcurrent(t *testing.T) {
    	var m TraceMap
    
    	var wg sync.WaitGroup
    	for i := range 3 {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    
    			si := strconv.Itoa(i)
    			var d = [...]string{
    				"a" + si,
    				"b" + si,
    				"aa" + si,
    				"ab" + si,
    				"ba" + si,
    				"bb" + si,
    			}
    			ids := make([]uint64, 0, len(d))
    			for _, s := range d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top