Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for what (0.13 sec)

  1. src/bytes/bytes.go

    	for len(s) > 0 && s[0] == c {
    		s = s[1:]
    	}
    	if len(s) == 0 {
    		// This is what we've historically done.
    		return nil
    	}
    	return s
    }
    
    func trimLeftASCII(s []byte, as *asciiSet) []byte {
    	for len(s) > 0 {
    		if !as.contains(s[0]) {
    			break
    		}
    		s = s[1:]
    	}
    	if len(s) == 0 {
    		// This is what we've historically done.
    		return nil
    	}
    	return s
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    name is a type or an ordinary identifier, so there will be no syntax
    errors that might stop parsing early.
    
    An error on not-declared:1 indicates that foo is undeclared.
    An error on not-type:1 indicates that foo is not a type (if declared at all, it is an identifier).
    An error on not-int-const:1 indicates that foo is not an integer constant.
    An error on not-num-const:1 indicates that foo is not a number constant.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    		b[0x11]++
    		b[0x9d]++
    
    		// TODO(bradfitz): add a new test that only corrupts
    		// one of these values, and verify that that's also an
    		// error. Currently, the reader code doesn't verify the
    		// fileheader and TOC's crc32 match if they're both
    		// non-zero and only the second line above, the TOC,
    		// is what matters.
    	})
    }
    
    // rZipBytes returns the bytes of a recursive zip file, without
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    non-<a href="#Blank_identifier">blank</a> <a href="#MethodName">method name</a>.
    </p>
    
    <p>
    The method set of a type determines the interfaces that the
    type <a href="#Interface_types">implements</a>
    and the methods that can be <a href="#Calls">called</a>
    using a receiver of that type.
    </p>
    
    <h3 id="Boolean_types">Boolean types</h3>
    
    <p>
    A <i>boolean type</i> represents the set of Boolean truth values
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    type panicReader struct{ panic bool }
    
    func (r panicReader) Read(p []byte) (int, error) {
    	if r.panic {
    		panic("oops")
    	}
    	return 0, io.EOF
    }
    
    // Make sure that an empty Buffer remains empty when
    // it is "grown" before a Read that panics
    func TestReadFromPanicReader(t *testing.T) {
    
    	// First verify non-panic behaviour
    	var buf Buffer
    	i, err := buf.ReadFrom(panicReader{})
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. doc/next/6-stdlib/99-minor/net/http/61472.md

    The new [Request.CookiesNamed] method retrieves all cookies that match the given name....
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Mar 20 18:08:20 GMT 2024
    - 87 bytes
    - Viewed (0)
  7. doc/next/6-stdlib/99-minor/go/types/65772.md

    The [Func] type, which represents a function or method symbol, now
    has a [Func.Signature] method that returns the function's type, which
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 19 14:33:17 GMT 2024
    - 161 bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    // It returns (0, io.EOF) when it reaches the end of that file,
    // until [Next] is called to advance to the next file.
    //
    // If the current file is sparse, then the regions marked as a hole
    // are read back as NUL-bytes.
    //
    // Calling Read on special types like [TypeLink], [TypeSymlink], [TypeChar],
    // [TypeBlock], [TypeDir], and [TypeFifo] returns (0, [io.EOF]) regardless of what
    // the [Header.Size] claims.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    }
    
    func (p *Parser) more() bool {
    	return p.inputPos < len(p.input)
    }
    
    // get verifies that the next item has the expected type and returns it.
    func (p *Parser) get(expected lex.ScanToken) lex.Token {
    	p.expect(expected, expected.String())
    	return p.next()
    }
    
    // expectOperandEnd verifies that the parsing state is properly at the end of an operand.
    func (p *Parser) expectOperandEnd() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/README.vendor

    in GOROOT/src.
    
    Maintaining vendor directories
    ==============================
    
    Before updating vendor directories, ensure that module mode is enabled.
    Make sure that GO111MODULE is not set in the environment, or that it is
    set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.
    
    Requirements may be added, updated, and removed with 'go get'.
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 02 02:20:05 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top