Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Larsen (0.2 sec)

  1. doc/go1.17_spec.html

    of an "if", "for", or "switch" statement, and the composite literal
    is not enclosed in parentheses, square brackets, or curly braces.
    In this rare case, the opening brace of the literal is erroneously parsed
    as the one introducing the block of statements. To resolve the ambiguity,
    the composite literal must appear within parentheses.
    </p>
    
    <pre>
    if x == (T{a,b,c}[i]) { … }
    if (x == T{a,b,c}[i]) { … }
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    <pre>
    type T[P *C] …
    type T[P (C)] …
    type T[P *C|Q] …
    …
    </pre>
    
    <p>
    In these rare cases, the type parameter list is indistinguishable from an
    expression and the type declaration is parsed as an array type declaration.
    To resolve the ambiguity, embed the constraint in an
    <a href="#Interface_types">interface</a> or use a trailing comma:
    </p>
    
    <pre>
    type T[P interface{*C}] …
    type T[P *C,] …
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/99-minor/net/http/66008.md

    The new [ParseCookie] function parses a Cookie header value and
    returns all the cookies which were set in it. Since the same cookie
    name can appear multiple times the returned Values can contain
    more than one value for a given key.
    
    The new [ParseSetCookie] function parses a Set-Cookie header value and
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 17 17:43:50 GMT 2024
    - 359 bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
    	filename := filepath.Join(dir, file)
    	if f := parsedFileCache[filename]; f != nil {
    		return f, nil
    	}
    
    	f, err := parser.ParseFile(fset, filename, nil, parser.ParseComments)
    	if err != nil {
    		return nil, err
    	}
    	parsedFileCache[filename] = f
    
    	return f, nil
    }
    
    // Disable before debugging non-obvious errors from the type-checker.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top