Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 178 for fruiter (0.17 sec)

  1. src/archive/zip/writer.go

    // for the file metadata. [Writer] takes ownership of fh and may mutate
    // its fields. The caller must not modify fh after calling [Writer.CreateHeader].
    //
    // This returns a [Writer] to which the file contents should be written.
    // The file's contents must be written to the io.Writer before the next
    // call to [Writer.Create], [Writer.CreateHeader], [Writer.CreateRaw], or [Writer.Close].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/table/writer.go

    	"io"
    	"strings"
    	"unicode/utf8"
    
    	"github.com/fatih/color"
    )
    
    type ColoredTableWriter struct {
    	writer     io.Writer
    	header     Row
    	rows       []Row
    	addRowFunc func(obj interface{}) Row
    }
    
    func NewStyleWriter(writer io.Writer) *ColoredTableWriter {
    	return &ColoredTableWriter{
    		writer: writer,
    		rows:   make([]Row, 0),
    		header: Row{},
    	}
    }
    
    type BuildRowFunc func(obj interface{}) Row
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		// It was verified to work with GNU tar 1.27.1 and BSD tar 3.1.2.
    		//  dd if=/dev/zero bs=1G count=16 >> writer-big-long.tar
    		//  gnutar -xvf writer-big-long.tar
    		//  bsdtar -xvf writer-big-long.tar
    		//
    		// This file is in PAX format.
    		file: "testdata/writer-big-long.tar",
    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/sds/writer_test.go

    	t.Helper()
    	for _, expected := range expected {
    		if !strings.Contains(output, expected) {
    			t.Errorf("expected %s included in writer output, did not find", expected)
    		}
    	}
    	for _, unexpected := range unexpected {
    		if strings.Contains(output, unexpected) {
    			t.Errorf("unexpected string %s included in writer output", unexpected)
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 4.9K bytes
    - Viewed (0)
  5. src/archive/zip/writer_test.go

    			if !test.ok {
    				t.Fatalf("SetComment: unexpected success, want error")
    			}
    		}
    
    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    
    		if w.closed != test.ok {
    			t.Fatalf("Writer.closed: got %v, want %v", w.closed, test.ok)
    		}
    
    		// skip read test in failure cases
    		if !test.ok {
    			continue
    		}
    
    		// read it back
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    // size. If the argument io.Writer is already a [Writer] with large enough
    // size, it returns the underlying [Writer].
    func NewWriterSize(w io.Writer, size int) *Writer {
    	// Is it already a Writer?
    	b, ok := w.(*Writer)
    	if ok && len(b.buf) >= size {
    		return b
    	}
    	if size <= 0 {
    		size = defaultBufSize
    	}
    	return &Writer{
    		buf: make([]byte, size),
    		wr:  w,
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate.go

    				if fname == "-" {
    					_, _ = fmt.Fprint(writer, warningToString(w))
    					break
    				}
    				_, _ = fmt.Fprintf(writer, "%q has warnings: %v\n", fname, warningToString(w))
    			}
    		}
    		return errs
    	}
    	for _, fname := range filenames {
    		if fname == "-" {
    			if w := warningsByFilename[fname]; w != nil {
    				_, _ = fmt.Fprint(writer, warningToString(w))
    			} else {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/configdump.go

    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/util/configdump"
    	sdscompare "istio.io/istio/istioctl/pkg/writer/compare/sds"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // ConfigWriter is a writer for processing responses from the Envoy Admin config_dump endpoint
    type ConfigWriter struct {
    	Stdout     io.Writer
    	configDump *configdump.Wrapper
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. cmd/erasure-encode.go

    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &parallelWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    		errs:        make([]error, len(writers)),
    	}
    
    	for {
    		var blocks [][]byte
    		n, err := io.ReadFull(src, buf)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. istioctl/pkg/authz/analyzer.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to get dynamic listener dump: %s", err)
    	}
    
    	return &Analyzer{listenerDump: listeners}, nil
    }
    
    // Print print the analysis results.
    func (a *Analyzer) Print(writer io.Writer) {
    	var listeners []*listener.Listener
    	for _, l := range a.listenerDump.DynamicListeners {
    		listenerTyped := &listener.Listener{}
    		// Support v2 or v3 in config dump. See ads.go:RequestedTypes for more info.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jul 13 01:59:17 GMT 2022
    - 2.1K bytes
    - Viewed (0)
Back to top