Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for It (0.38 sec)

  1. src/bufio/scan.go

    //
    // Otherwise, the [Scanner] advances the input. If the token is not nil,
    // the [Scanner] returns it to the user. If the token is nil, the
    // Scanner reads more data and continues scanning; if there is no more
    // data--if atEOF was true--the [Scanner] returns. If the data does not
    // yet hold a complete token, for instance if it has no newline while
    // scanning lines, a [SplitFunc] can return (0, nil, nil) to signal the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/archive/zip/reader.go

    	extraLen := int(b.uint16())
    	return int64(fileHeaderLen + filenameLen + extraLen), nil
    }
    
    // readDirectoryHeader attempts to read a directory header from r.
    // It returns io.ErrUnexpectedEOF if it cannot read a complete header,
    // and ErrFormat if it doesn't find a valid header signature.
    func readDirectoryHeader(f *File, r io.Reader) error {
    	var buf [directoryHeaderLen]byte
    	if _, err := io.ReadFull(r, buf[:]); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  3. misc/linkcheck/linkcheck.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The linkcheck command finds missing links in the godoc website.
    // It crawls a URL recursively and notes URLs and URL fragments
    // that it's seen and prints a report of missing links at the end.
    package main
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"os"
    	"regexp"
    	"strings"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  4. src/archive/tar/format.go

    	formatV7
    
    	// FormatUSTAR represents the USTAR header format defined in POSIX.1-1988.
    	//
    	// While this format is compatible with most tar readers,
    	// the format has several limitations making it unsuitable for some usages.
    	// Most notably, it cannot support sparse files, files larger than 8GiB,
    	// filenames larger than 256 characters, and non-ASCII filenames.
    	//
    	// Reference:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  5. src/archive/zip/struct.go

    // fs.FileInfo.
    // Because fs.FileInfo's Name method returns only the base name of
    // the file it describes, it may be necessary to modify the Name field
    // of the returned header to provide the full path name of the file.
    // If compression is desired, callers should set the FileHeader.Method
    // field; it is unset by default.
    func FileInfoHeader(fi fs.FileInfo) (*FileHeader, error) {
    	size := fi.Size()
    	fh := &FileHeader{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue26430.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Issue 26430: incomplete typedef leads to inconsistent typedefs error.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 359 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/gcc68255/a.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that it's OK to have C code that does nothing other than
    // initialize a global variable.  This used to fail with gccgo.
    
    package gcc68255
    
    /*
    #include "c.h"
    */
    import "C"
    
    func F() bool {
    	return C.v != nil
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 378 bytes
    - Viewed (0)
  8. src/cmd/cgo/godefs.go

    		if id := goIdent[old]; id != nil {
    			id.Name = new
    		}
    	}
    
    	// Any names still using the _C syntax are not going to compile,
    	// although in general we don't know whether they all made it
    	// into the file, so we can't warn here.
    	//
    	// The most common case is union types, which begin with
    	// _Ctype_union and for which typedef[name] is a Go byte
    	// array of the appropriate size (such as [4]byte).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/arch/arch.go

    }
    
    // nilRegisterNumber is the register number function for architectures
    // that do not accept the R(N) notation. It always returns failure.
    func nilRegisterNumber(name string, n int16) (int16, bool) {
    	return 0, false
    }
    
    // Set configures the architecture specified by GOARCH and returns its representation.
    // It returns nil if GOARCH is not recognized.
    func Set(GOARCH string, shared bool) *Arch {
    	switch GOARCH {
    	case "386":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. src/bytes/example_test.go

    	clone[0] = 'd'
    	fmt.Printf("%s\n", b)
    	fmt.Printf("%s\n", clone)
    	// Output:
    	// abc
    	// abc
    	// dbc
    }
    
    func ExampleCompare() {
    	// Interpret Compare's result by comparing it to zero.
    	var a, b []byte
    	if bytes.Compare(a, b) < 0 {
    		// a less b
    	}
    	if bytes.Compare(a, b) <= 0 {
    		// a less or equal b
    	}
    	if bytes.Compare(a, b) > 0 {
    		// a greater b
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top