Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Dadd (0.14 sec)

  1. src/archive/zip/fuzz_test.go

    	}
    	for _, de := range testdata {
    		if de.IsDir() {
    			continue
    		}
    		b, err := os.ReadFile(filepath.Join("testdata", de.Name()))
    		if err != nil {
    			f.Fatalf("failed to read testdata: %s", err)
    		}
    		f.Add(b)
    	}
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r, err := NewReader(bytes.NewReader(b), int64(len(b)))
    		if err != nil {
    			return
    		}
    
    		type file struct {
    			header  *FileHeader
    			content []byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/api/api_test.go

    			w.Features()
    		}
    	}
    }
    
    var warmupCache = sync.OnceFunc(func() {
    	// Warm up the import cache in parallel.
    	var wg sync.WaitGroup
    	for _, context := range contexts {
    		context := context
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			_ = NewWalker(context, filepath.Join(testenv.GOROOT(nil), "src"))
    		}()
    	}
    	wg.Wait()
    })
    
    func TestIssue21181(t *testing.T) {
    	if testing.Short() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/cgotest/overlaydir.go

    			info, err = os.Stat(srcPath)
    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 20:56:09 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.html

    Use of this source code is governed by a BSD-style
    license that can be found in the LICENSE file.
    -->
    <html>
    
    <head>
    	<meta charset="utf-8">
    	<title>Go wasm</title>
    </head>
    
    <body>
    	<!--
    	Add the following polyfill for Microsoft Edge 17/18 support:
    	<script src="https://cdn.jsdelivr.net/npm/text-encoding@0.7.0/lib/encoding.min.js"></script>
    	(see https://caniuse.com/#feat=textencoder)
    	-->
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Oct 02 17:25:11 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  5. src/archive/tar/fuzz_test.go

    	}
    	_, err = w.Write(inp)
    	if err != nil {
    		f.Fatalf("failed to write file to archive: %s", err)
    	}
    	if err := w.Close(); err != nil {
    		f.Fatalf("failed to write archive: %s", err)
    	}
    	f.Add(b.Bytes())
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r := NewReader(bytes.NewReader(b))
    		type file struct {
    			header  *Header
    			content []byte
    		}
    		files := []file{}
    		for {
    			hdr, err := r.Next()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    }
    
    func (f *formatter) formatOctal(b []byte, x int64) {
    	if !fitsInOctal(len(b), x) {
    		x = 0 // Last resort, just write zero
    		f.err = ErrFieldTooLong
    	}
    
    	s := strconv.FormatInt(x, 8)
    	// Add leading zeros, but leave room for a NUL.
    	if n := len(b) - len(s) - 1; n > 0 {
    		s = strings.Repeat("0", n) + s
    	}
    	f.formatString(b, s)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. .github/PULL_REQUEST_TEMPLATE

      really needed (ASCII art, table, or long link)
    + If there is a corresponding issue, add either `Fixes #1234` or `Updates #1234`
      (the latter if this is not a complete fix) to this comment
    + If referring to a repo other than `golang/go` you can use the
      `owner/repo#issue_number` syntax: `Fixes golang/tools#1234`
    + We do not use Signed-off-by lines in Go. Please don't add them.
      Our Gerrit server & GitHub bots enforce CLA compliance instead.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Feb 21 02:07:46 GMT 2018
    - 1.2K bytes
    - Viewed (0)
  8. lib/time/mkzip.go

    	})
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := zw.Close(); err != nil {
    		log.Fatal(err)
    	}
    	if len(seen) == 0 {
    		log.Fatalf("did not find any files to add")
    	}
    	if !seen["US/Eastern"] {
    		log.Fatalf("did not find US/Eastern to add")
    	}
    	if err := os.WriteFile(args[0], zb.Bytes(), 0666); err != nil {
    		log.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. misc/cgo/gmp/fib.go

    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    	i := big.NewInt(n)
    	if n == 0 {
    		c <- i
    	}
    	for {
    		j := <-c
    		out <- j.String()
    		i.Add(i, j)
    		c <- i
    	}
    }
    
    func main() {
    	c := make(chan *big.Int)
    	out := make(chan string)
    	go fibber(c, out, 0)
    	go fibber(c, out, 1)
    	for i := 0; i < 200; i++ {
    		println(<-out)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 919 bytes
    - Viewed (0)
  10. src/archive/zip/testdata/readme.zip

    environment variable $GOROOT to the full path of the go directory (the one containing this README). You can omit the variable if you unpack it into /usr/local/go, or if you rebuild from sources by running all.bash (see doc/install.html). You should also add the Go binary directory $GOROOT/bin to your shell's path. For example, if you extracted the tar file into $HOME/go, you might put the following in your .profile: export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin See doc/install.html for more details....
    ZIP Archive
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sat Jul 11 14:36:33 GMT 2015
    - 1.8K bytes
    - Viewed (0)
Back to top