Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for balk (0.11 sec)

  1. src/archive/tar/writer_test.go

    			t.Errorf("test %d, unexpected Close error: %v", i, err)
    		}
    
    		// The prefix field should never appear in the GNU format.
    		var blk block
    		copy(blk[:], b.Bytes())
    		prefix := string(blk.toUSTAR().prefix())
    		prefix, _, _ = strings.Cut(prefix, "\x00") // Truncate at the NUL terminator
    		if blk.getFormat() == FormatGNU && len(prefix) > 0 && strings.HasPrefix(name, prefix) {
    			t.Errorf("test %d, found prefix in GNU format: %s", i, prefix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/1-time.md

    When Go 1.23 builds older programs, the old behaviors remain in effect.
    The new [GODEBUG setting](/doc/godebug) [`asynctimerchan=1`](/pkg/time/#NewTimer)
    can be used to revert back to asynchronous channel behaviors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 20:49:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. doc/next/9-todo.md

    CL 564035 - changed encoding/xml, but the change was too disrptive and rolled back in CL 570175, reopening tracking issue go.dev/issue/65691; nothing to document in Go 1.23 release notes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:52 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast_go1.go

    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	error_(token.NoPos, "unexpected type %T in walk", x)
    	panic("unexpected type")
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return nil
    }
    
    func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 578 bytes
    - Viewed (0)
  5. misc/cgo/gmp/fib.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
  6. lib/time/mkzip.go

    		if d.IsDir() {
    			return nil
    		}
    		data, err := os.ReadFile(path)
    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    		if tok.ScanToken == scanner.EOF {
    			p.errorf("missing right parenthesis")
    			return
    		}
    		rname := tok.String()
    		p.back()
    		haveConstant = !p.atStartOfRegister(rname)
    		if !haveConstant {
    			p.back() // Put back the '('.
    		}
    	}
    	if haveConstant {
    		p.back()
    		if p.have(scanner.Float) {
    			if prefix != '$' {
    				p.errorf("floating-point constant must be an immediate")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    	if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil {
    		return nil, nil, err // EOF is okay here; exactly 0 bytes read
    	}
    	if bytes.Equal(tr.blk[:], zeroBlock[:]) {
    		if _, err := io.ReadFull(tr.r, tr.blk[:]); err != nil {
    			return nil, nil, err // EOF is okay here; exactly 1 block of zeros read
    		}
    		if bytes.Equal(tr.blk[:], zeroBlock[:]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. doc/go_mem.html

    The rewritten code does <code>*p = 1</code> and then <code>*p = 3</code>,
    allowing a racing thread to read 1 as well.
    </p>
    
    <p>
    Note that all these optimizations are permitted in C/C++ compilers:
    a Go compiler sharing a back end with a C/C++ compiler must take care
    to disable optimizations that are invalid for Go.
    </p>
    
    <p>
    Note that the prohibition on introducing data races
    does not apply if the compiler can prove that the races
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/cgotest/overlaydir.go

    	dstRoot = filepath.Clean(dstRoot)
    	if err := os.MkdirAll(dstRoot, 0777); err != nil {
    		return err
    	}
    
    	srcRoot, err := filepath.Abs(srcRoot)
    	if err != nil {
    		return err
    	}
    
    	return filepath.Walk(srcRoot, func(srcPath string, info os.FileInfo, err error) error {
    		if err != nil || srcPath == srcRoot {
    			return err
    		}
    
    		suffix := strings.TrimPrefix(srcPath, srcRoot)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top