- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 195 for Greter (1.05 sec)
-
src/archive/tar/writer.go
"path" "slices" "strings" "time" ) // Writer provides sequential writing of a tar archive. // [Writer.WriteHeader] begins a new file with the provided [Header], // and then Writer can be treated as an io.Writer to supply that file's data. type Writer struct { w io.Writer pad int64 // Amount of padding to write after current file entry curr fileWriter // Writer for current file entry
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
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, } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/archive/zip/register.go
"errors" "io" "sync" ) // A Compressor returns a new compressing writer, writing to w. // The WriteCloser's Close method must be used to flush pending data to w. // The Compressor itself must be safe to invoke from multiple goroutines // simultaneously, but each returned writer will be used only by // one goroutine at a time. type Compressor func(w io.Writer) (io.WriteCloser, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/imports/build.go
func eval(x constraint.Expr, tags map[string]bool, prefer bool) bool { switch x := x.(type) { case *constraint.TagExpr: return matchTag(x.Tag, tags, prefer) case *constraint.NotExpr: return !eval(x.X, tags, !prefer) case *constraint.AndExpr: return eval(x.X, tags, prefer) && eval(x.Y, tags, prefer) case *constraint.OrExpr: return eval(x.X, tags, prefer) || eval(x.Y, tags, prefer) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 30 18:50:57 UTC 2023 - 10.4K bytes - Viewed (0) -
src/cmd/go/internal/help/help.go
{{.UsageLine}} {{end}}{{.Long | trim}} {{end}}{{end}}` // commentWriter writes a Go comment to the underlying io.Writer, // using line comment form (//). type commentWriter struct { W io.Writer wroteSlashes bool // Wrote "//" at the beginning of the current line. } func (c *commentWriter) Write(p []byte) (int, error) { var n int for i, b := range p {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile_test.go
import ( "bufio" "bytes" "fmt" "internal/buildcfg" "internal/testenv" "os" "testing" "cmd/internal/bio" "cmd/internal/objabi" ) func dummyWriter(buf *bytes.Buffer) *Writer { wr := &bio.Writer{Writer: bufio.NewWriter(buf)} // hacky: no file, so cannot seek return NewWriter(wr) } func TestReadWrite(t *testing.T) { // Test that we get the same data in a write-read roundtrip.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:12 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/go/internal/work/cover.go
return "", nil } return metaFile, nil } } return "", fmt.Errorf("internal error: unable to locate build action for package %q run action", p.ImportPath) } // WriteCoveragePercent writes out to the writer 'w' a "percent // statements covered" for the package whose test-run action is // 'runAct', based on the meta-data file 'mf'. This helper is used in // cases where a user runs "go test -cover" on a package that has
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/AMD64latelower.rules
// See comments in ARM64latelower.rules...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 636 bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_retract_incompatible.txt
# The current version of a module should not be considered when loading # retractions. If the current version is +incompatible, we should not prefer # +incompatible versions when looking for retractions. # Verifies #42601. go mod init m # Request a +incompatible version retracted in v1.0.0. go get example.com/retract/incompatible@v2.0.0+incompatible stderr '^go: warning: example.com/retract/incompatible@v2.0.0\+incompatible: retracted by module author$'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 716 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_compile_multi_pkg.txt
go test -c ./pkg/... exists -exec pkg1.test$GOEXE exists -exec pkg2.test$GOEXE ! go test -c -o $WORK/bin/test/bin.test.exe ./pkg/... stderr '^with multiple packages, -o must refer to a directory or '$devnull ! go test -c ./... stderr '^cannot write test binary pkg1.test for multiple packages:\nexample/anotherpkg/pkg1\nexample/pkg/pkg1' ! go test -c -o $WORK/bin/test/ ./...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:09:34 UTC 2023 - 1.5K bytes - Viewed (0)