Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 730 for golang (0.29 sec)

  1. src/bufio/bufio_test.go

    	}
    	if _, err := b.Read(buf); err != nil {
    		t.Fatalf("3rd Read with buffer = %v; want nil", err)
    	}
    	if r.nread != 2 {
    		t.Errorf("num reads = %d; want 2", r.nread)
    	}
    }
    
    // Test for golang.org/issue/5947
    func TestWriterReadFromWhileFull(t *testing.T) {
    	buf := new(bytes.Buffer)
    	w := NewWriterSize(buf, 10)
    
    	// Fill buffer exactly.
    	n, err := w.Write([]byte("0123456789"))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. CHANGELOG/CHANGELOG-1.18.md

    - github.com/gogo/protobuf: [v1.3.1 → v1.3.2](https://github.com/gogo/protobuf/compare/v1.3.1...v1.3.2)
    - github.com/kisielk/errcheck: [v1.2.0 → v1.5.0](https://github.com/kisielk/errcheck/compare/v1.2.0...v1.5.0)
    - golang.org/x/net: 13f9640 → 69a7880
    - golang.org/x/sys: fde4db3 → 5cba982
    
    ### Removed
    _Nothing has changed._
    
    
    
    # v1.18.17
    
    
    ## Downloads for v1.18.17
    
    ### Source Code
    
    filename | sha512 hash
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Jun 16 17:18:28 UTC 2021
    - 373.2K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    func Repeat(b []byte, count int) []byte {
    	if count == 0 {
    		return []byte{}
    	}
    
    	// Since we cannot return an error on overflow,
    	// we should panic if the repeat will generate an overflow.
    	// See golang.org/issue/16237.
    	if count < 0 {
    		panic("bytes: negative Repeat count")
    	}
    	hi, lo := bits.Mul(uint(len(b)), uint(count))
    	if hi > 0 || lo > uint(maxInt) {
    		panic("bytes: Repeat output length overflow")
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	globalEventNotifier.InitBucketTargets(ctx, objLayer)
    
    	return testServer
    }
    
    // testServerCertPEM and testServerKeyPEM are generated by
    //  https://golang.org/src/crypto/tls/generate_cert.go
    //    $ go run generate_cert.go -ca --host 127.0.0.1
    // The generated certificate contains IP SAN, that way we don't need
    // to enable InsecureSkipVerify in TLS config
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    type ZipTest struct {
    	Name     string
    	Source   func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
    	Comment  string
    	File     []ZipTestFile
    	Obscured bool  // needed for Apple notarization (golang.org/issue/34986)
    	Error    error // the error that Opening this file should return
    }
    
    type ZipTestFile struct {
    	Name     string
    	Mode     fs.FileMode
    	NonUTF8  bool
    	ModTime  time.Time
    	Modified time.Time
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    // If the allocation fails, it panics with ErrTooLarge.
    func growSlice(b []byte, n int) []byte {
    	defer func() {
    		if recover() != nil {
    			panic(ErrTooLarge)
    		}
    	}()
    	// TODO(http://golang.org/issue/51462): We should rely on the append-make
    	// pattern so that the compiler can call runtime.growslice. For example:
    	//	return append(b, make([]byte, n)...)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    	if w.last != nil && !w.last.closed {
    		if err := w.last.close(); err != nil {
    			return err
    		}
    	}
    	if len(w.dir) > 0 && w.dir[len(w.dir)-1].FileHeader == fh {
    		// See https://golang.org/issue/11144 confusion.
    		return errors.New("archive/zip: invalid duplicate FileHeader")
    	}
    	return nil
    }
    
    // CreateHeader adds a file to the zip archive using the provided [FileHeader]
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    	}
    	h, err := FileInfoHeader(fi, "")
    	if err != nil {
    		t.Fatalf("FileInfoHeader: %v", err)
    	}
    	if g, e := h.Name, "testdata/"; g != e {
    		t.Errorf("Name = %q; want %q", g, e)
    	}
    	// Ignoring c_ISGID for golang.org/issue/4867
    	if g, e := h.Mode&^c_ISGID, int64(fi.Mode().Perm()); g != e {
    		t.Errorf("Mode = %#o; want %#o", g, e)
    	}
    	if g, e := h.Size, int64(0); g != e {
    		t.Errorf("Size = %v; want %v", g, e)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    	hcm "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
    	"github.com/hashicorp/go-multierror"
    	"github.com/spf13/cobra"
    	"google.golang.org/protobuf/types/known/structpb"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	klabels "k8s.io/apimachinery/pkg/labels"
    	"k8s.io/client-go/kubernetes"
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  10. cmd/utils.go

    	"github.com/minio/minio/internal/rest"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/certs"
    	"github.com/minio/pkg/v3/env"
    	xaudit "github.com/minio/pkg/v3/logger/message/audit"
    	xnet "github.com/minio/pkg/v3/net"
    	"golang.org/x/oauth2"
    )
    
    const (
    	slashSeparator = "/"
    )
    
    // BucketAccessPolicy - Collection of canned bucket policy at a given prefix.
    type BucketAccessPolicy struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top