Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 101 of 101 for iota (0.03 sec)

  1. src/cmd/go/internal/modfetch/cache.go

    func tempFile(ctx context.Context, dir, prefix string, perm fs.FileMode) (f *os.File, err error) {
    	for i := 0; i < 10000; i++ {
    		name := filepath.Join(dir, prefix+strconv.Itoa(rand.Intn(1000000000))+".tmp")
    		f, err = os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, perm)
    		if os.IsExist(err) {
    			if ctx.Err() != nil {
    				return nil, ctx.Err()
    			}
    			continue
    		}
    		break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top