Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 938 for Nil$ (0.02 sec)

  1. 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)
  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/erasure-decode_test.go

    			bitrotReaders[index] = newBitrotReader(disk, nil, "testbucket", "object", tillOffset, writeAlgorithm, bitrotWriterSum(writers[index]), erasure.ShardSize())
    		}
    
    		writer := bytes.NewBuffer(nil)
    		_, err = erasure.Decode(context.Background(), writer, bitrotReaders, test.offset, test.length, test.data, nil)
    		closeBitrotReaders(bitrotReaders)
    		if err != nil && !test.shouldFail {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/archive/tar/fuzz_test.go

    			return
    		}
    
    		out := bytes.NewBuffer(nil)
    		w := NewWriter(out)
    		for _, f := range files {
    			if err := w.WriteHeader(f.header); err != nil {
    				t.Fatalf("unable to write previously parsed header: %s", err)
    			}
    			if _, err := w.Write(f.content); err != nil {
    				t.Fatalf("unable to write previously parsed content: %s", err)
    			}
    		}
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. internal/event/config.go

    	if err := xml.NewDecoder(reader).Decode(&config); err != nil {
    		return nil, err
    	}
    
    	if err := config.Validate(region, targetList); err != nil {
    		return nil, err
    	}
    
    	config.SetRegion(region)
    	// If xml namespace is empty, set a default value before returning.
    	if config.XMLNS == "" {
    		config.XMLNS = "http://s3.amazonaws.com/doc/2006-03-01/"
    	}
    	return &config, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. docs/extensions/s3zip/examples/minio-go/main.go

    	})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	var opts minio.GetObjectOptions
    
    	// Add extract header to request:
    	opts.Set("x-minio-extract", "true")
    
    	// Download API.md from the archive
    	rd, err := s3Client.GetObject(context.Background(), "your-bucket", "path/to/file.zip/data.csv", opts)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	_, err = io.Copy(os.Stdout, rd)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 14 18:04:14 UTC 2021
    - 694 bytes
    - Viewed (0)
  9. 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)
  10. internal/bucket/replication/replication_test.go

    			expectedValidationErr: nil,
    		},
    	}
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil && tc.expectedParsingErr != nil && err.Error() != tc.expectedParsingErr.Error() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top