Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 420 for Parses (0.14 sec)

  1. src/go/types/check_test.go

    )
    
    var fset = token.NewFileSet()
    
    func parseFiles(t *testing.T, filenames []string, srcs [][]byte, mode parser.Mode) ([]*ast.File, []error) {
    	var files []*ast.File
    	var errlist []error
    	for i, filename := range filenames {
    		file, err := parser.ParseFile(fset, filename, srcs[i], mode)
    		if file == nil {
    			t.Fatalf("%s: %s", filename, err)
    		}
    		files = append(files, file)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/strconv/quote.go

    	out, rem, err := unquote(s, true)
    	if len(rem) > 0 {
    		return "", ErrSyntax
    	}
    	return out, err
    }
    
    // unquote parses a quoted string at the start of the input,
    // returning the parsed prefix, the remaining suffix, and any parse errors.
    // If unescape is true, the parsed prefix is unescaped,
    // otherwise the input prefix is provided verbatim.
    func unquote(in string, unescape bool) (out, rem string, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. pkg/kubelet/logs/container_log_manager.go

    		}
    	}()
    	r, err := gzip.NewReader(f)
    	if err != nil {
    		return nil, fmt.Errorf("failed to create gzip reader: %v", err)
    	}
    	return &compressReadCloser{f: f, Reader: r}, nil
    }
    
    // parseMaxSize parses quantity string to int64 max size in bytes.
    func parseMaxSize(size string) (int64, error) {
    	quantity, err := resource.ParseQuantity(size)
    	if err != nil {
    		return 0, err
    	}
    	maxSize, ok := quantity.AsInt64()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/net/conf.go

    	case dnsSource:
    		return hostLookupDNS, dnsConf
    	}
    
    	// Something weird. Fallback to the default.
    	return fallbackOrder, dnsConf
    }
    
    var netdns = godebug.New("netdns")
    
    // goDebugNetDNS parses the value of the GODEBUG "netdns" value.
    // The netdns value can be of the form:
    //
    //	1       // debug level 1
    //	2       // debug level 2
    //	cgo     // use cgo for DNS lookups
    //	go      // use go for DNS lookups
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	}
    	var L string
    	if t.L == -1 {
    		L = "data"
    	} else {
    		L = fmt.Sprintf("%d", t.L)
    	}
    	return fmt.Sprintf("tile/%d/%s/%s%s", t.H, L, nStr, pStr)
    }
    
    // ParseTilePath parses a tile coordinate path.
    func ParseTilePath(path string) (Tile, error) {
    	f := strings.Split(path, "/")
    	if len(f) < 4 || f[0] != "tile" {
    		return Tile{}, &badPathError{path}
    	}
    	h, err1 := strconv.Atoi(f[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/net/tcpsock.go

    //
    // If the host in the address parameter is not a literal IP address or
    // the port is not a literal port number, ResolveTCPAddr resolves the
    // address to an address of TCP end point.
    // Otherwise, it parses the address as a pair of literal IP address
    // and port number.
    // The address parameter can use a host name, but this is not
    // recommended, because it will return at most one of the host name's
    // IP addresses.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. src/net/http/pattern.go

    //
    //	"{rest...}" => segment{s: "rest", wild: true, multi: true}
    type segment struct {
    	s     string // literal or wildcard name or "/" for "/{$}".
    	wild  bool
    	multi bool // "..." wildcard
    }
    
    // parsePattern parses a string into a Pattern.
    // The string's syntax is
    //
    //	[METHOD] [HOST]/[PATH]
    //
    // where:
    //   - METHOD is an HTTP method
    //   - HOST is a hostname
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/internal/reflectlite/type.go

    	}
    	if len(t.Methods) == 0 {
    		return true
    	}
    	rT := toRType(T)
    	rV := toRType(V)
    
    	// The same algorithm applies in both cases, but the
    	// method tables for an interface type and a concrete type
    	// are different, so the code is duplicated.
    	// In both cases the algorithm is a linear scan over the two
    	// lists - T's methods and V's methods - simultaneously.
    	// Since method tables are stored in a unique sorted order
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. src/runtime/runtime1.go

    	parsegodebug(godebugDefault, seen)
    	// apply defaults for as-yet-unseen variables
    	for _, v := range dbgvars {
    		if v.atomic != nil && !seen[v.name] {
    			v.atomic.Store(0)
    		}
    	}
    }
    
    // parsegodebug parses the godebug string, updating variables listed in dbgvars.
    // If seen == nil, this is startup time and we process the string left to right
    // overwriting older settings with newer ones.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. src/fmt/doc.go

    require that the items be followed by a newline or EOF.
    
    [Scanf], [Fscanf], and [Sscanf] parse the arguments according to a
    format string, analogous to that of [Printf]. In the text that
    follows, 'space' means any Unicode whitespace character
    except newline.
    
    In the format string, a verb introduced by the % character
    consumes and parses input; these verbs are described in more
    detail below. A character other than %, space, or newline in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top