Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 938 for Nil (0.02 sec)

  1. cmd/bucket-handlers.go

    	if v == "" {
    		return nil, http.ErrNotMultipart
    	}
    	if r.Body == nil {
    		return nil, errors.New("missing form body")
    	}
    	d, params, err := mime.ParseMediaType(v)
    	if err != nil {
    		return nil, http.ErrNotMultipart
    	}
    	if d != "multipart/form-data" {
    		return nil, http.ErrNotMultipart
    	}
    	boundary, ok := params["boundary"]
    	if !ok {
    		return nil, http.ErrMissingBoundary
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  2. src/bytes/reader.go

    		return 0, io.EOF
    	}
    	b := r.s[r.i]
    	r.i++
    	return b, nil
    }
    
    // UnreadByte complements [Reader.ReadByte] in implementing the [io.ByteScanner] interface.
    func (r *Reader) UnreadByte() error {
    	if r.i <= 0 {
    		return errors.New("bytes.Reader.UnreadByte: at beginning of slice")
    	}
    	r.prevRune = -1
    	r.i--
    	return nil
    }
    
    // ReadRune implements the [io.RuneReader] interface.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jul 16 18:17:37 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/metacache-stream_test.go

    	defer r.Close()
    	names, err := r.readNames(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := loadMetacacheSampleNames[:5]
    	if !reflect.DeepEqual(names, want) {
    		t.Errorf("got unexpected result: %#v", names)
    	}
    	err = r.skip(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	names, err = r.readNames(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want = loadMetacacheSampleNames[10:15]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast.go

    				s, ok := spec.(*ast.ImportSpec)
    				if !ok || s.Path.Value != `"C"` {
    					continue
    				}
    				sawC = true
    				if s.Name != nil {
    					error_(s.Path.Pos(), `cannot rename import "C"`)
    				}
    				cg := s.Doc
    				if cg == nil && len(decl.Specs) == 1 {
    					cg = decl.Doc
    				}
    				if cg != nil {
    					if strings.ContainsAny(abspath, "\r\n") {
    						// This should have been checked when the file path was first resolved,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. internal/pubsub/pubsub.go

    	combined := Mask(atomic.LoadUint64(&ps.types))
    	combined.Merge(Mask(mask.Mask()))
    	atomic.StoreUint64(&ps.types, uint64(combined))
    	if wg != nil {
    		wg.Add(1)
    	}
    	go func() {
    		defer func() {
    			if wg != nil {
    				wg.Done()
    			}
    			// Clean up and de-register the subscriber
    			ps.Lock()
    			defer ps.Unlock()
    			var remainTypes Mask
    			for i, s := range ps.subs {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tests/associations_has_one_test.go

    	user := User{Name: "jinzhu", Account: Account{Number: "1"}}
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	if err := DB.Model(&user).Association("Languages").Replace(Account{Number: "2"}); err == nil {
    		t.Error("expected association error to be not nil")
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. callbacks/associations.go

    						}
    
    						if saveAssociations(db, rel, rv, selectColumns, restricted, nil) == nil {
    							setupReferences(db.Statement.ReflectValue, rv)
    						}
    					}
    				}
    			}
    		}
    	}
    }
    
    func SaveAfterAssociations(create bool) func(db *gorm.DB) {
    	return func(db *gorm.DB) {
    		if db.Error == nil && db.Statement.Schema != nil {
    			selectColumns, restricted := db.Statement.SelectAndOmitColumns(create, !create)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  8. internal/kms/secret-key_test.go

    	if err != nil {
    		t.Fatalf("Failed to initialize KMS: %v", err)
    	}
    
    	key, err := KMS.GenerateKey(context.Background(), &GenerateKeyRequest{Name: "my-key"})
    	if err != nil {
    		t.Fatalf("Failed to generate key: %v", err)
    	}
    	plaintext, err := KMS.Decrypt(context.TODO(), &DecryptRequest{
    		Name:       key.KeyID,
    		Ciphertext: key.Ciphertext,
    	})
    	if err != nil {
    		t.Fatalf("Failed to decrypt key: %v", err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. cmd/xl-storage-format_test.go

    					if err != nil {
    						b.Fatal(err)
    					}
    					// Update modtime for resorting...
    					fi.ModTime = fi.ModTime.Add(-time.Second)
    					// Update a random version.
    					fi.VersionID = mustGetUUID()
    					// Add...
    					err = xl.AddVersion(fi)
    					if err != nil {
    						b.Fatal(err)
    					}
    					// Save...
    					dump, err = xl.AppendTo(dump[:0])
    					if err != nil {
    						b.Fatal(err)
    					}
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. cmd/xl-storage_unix_test.go

    	// Initialize a new xlStorage layer.
    	disk, err := newLocalXLStorage(tmpPath)
    	if err != nil {
    		t.Fatalf("Initializing xlStorage failed with %s.", err)
    	}
    
    	// Attempt to create a volume to verify the permissions later.
    	// MakeVol creates 0777.
    	if err = disk.MakeVol(context.Background(), testCase.volName); err != nil {
    		t.Fatalf("Creating a volume failed with %s expected to pass.", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top