Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 663 for unquote (0.17 sec)

  1. src/internal/fuzz/encoding.go

    			return nil, fmt.Errorf("expected []byte")
    		}
    		lit, ok := arg.(*ast.BasicLit)
    		if !ok || lit.Kind != token.STRING {
    			return nil, fmt.Errorf("string literal required for type []byte")
    		}
    		s, err := strconv.Unquote(lit.Value)
    		if err != nil {
    			return nil, err
    		}
    		return []byte(s), nil
    	}
    
    	var idType *ast.Ident
    	if selector, ok := call.Fun.(*ast.SelectorExpr); ok {
    		xIdent, ok := selector.X.(*ast.Ident)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/check_test.go

    					panic("unreachable")
    				}
    			}
    			unquoted, err := strconv.Unquote(strings.TrimSpace(pattern))
    			if err != nil {
    				t.Errorf("%s:%d:%d: invalid ERROR pattern (cannot unquote %s)", filename, line, want.Pos.Col(), pattern)
    				continue
    			}
    			if substr {
    				if !strings.Contains(gotMsg, unquoted) {
    					continue
    				}
    			} else {
    				rx, err := regexp.Compile(unquoted)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/cmd/internal/buildid/buildid.go

    			}
    		case 3:
    			if !bytes.HasPrefix(line, buildid) {
    				// Found the object header, just doesn't have a build id line.
    				// Treat as successful, with empty build id.
    				return "", nil
    			}
    			id, err := strconv.Unquote(string(line[len(buildid):]))
    			if err != nil {
    				return tryGccgo()
    			}
    			return id, nil
    		}
    	}
    }
    
    // readGccgoArchive tries to parse the archive as a standard Unix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 28 21:52:53 UTC 2020
    - 9K bytes
    - Viewed (0)
  4. src/internal/trace/raw/textreader.go

    func readData(line string) ([]byte, error) {
    	parts := strings.SplitN(line, "=", 2)
    	if len(parts) < 2 || strings.TrimSpace(parts[0]) != "data" {
    		return nil, fmt.Errorf("malformed data: %q", line)
    	}
    	data, err := strconv.Unquote(strings.TrimSpace(parts[1]))
    	if err != nil {
    		return nil, fmt.Errorf("failed to parse data: %q: %v", line, err)
    	}
    	return []byte(data), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/vcstest/svn/test2-svn-git.txt

    git remote add origin https://vcs-test.swtch.com/git/README-only
    mkdir .git/refs/remotes/origin
    echo 'ref: refs/remotes/origin/master'
    cp stdout .git/refs/remotes/origin/HEAD
    unquote '# pack-refs with: peeled fully-peeled \n7f800d2ac276dd7042ea0e8d7438527d236fd098 refs/remotes/origin/master\n'
    cp stdout .git/packed-refs
    git branch --set-upstream-to=origin/master
    
    git add pkg/pkg.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. src/text/template/parse/parse.go

    // been scanned.
    func (t *Tree) parseDefinition() {
    	const context = "define clause"
    	name := t.expectOneOf(itemString, itemRawString, context)
    	var err error
    	t.Name, err = strconv.Unquote(name.val)
    	if err != nil {
    		t.error(err)
    	}
    	t.expect(itemRightDelim, context)
    	var end Node
    	t.Root, end = t.itemList()
    	if end.Type() != nodeEnd {
    		t.errorf("unexpected %s in %s", end, context)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/build_read.go

    		if !ok {
    			continue
    		}
    		for _, dspec := range d.Specs {
    			spec, ok := dspec.(*ast.ImportSpec)
    			if !ok {
    				continue
    			}
    			quoted := spec.Path.Value
    			path, err := strconv.Unquote(quoted)
    			if err != nil {
    				return fmt.Errorf("parser returned invalid quoted string: <%s>", quoted)
    			}
    			if path == "embed" {
    				hasEmbed = true
    			}
    
    			doc := spec.Doc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. src/go/types/check_test.go

    					panic("unreachable")
    				}
    			}
    			unquoted, err := strconv.Unquote(strings.TrimSpace(pattern))
    			if err != nil {
    				t.Errorf("%s:%d:%d: invalid ERROR pattern (cannot unquote %s)", filename, line, want.col, pattern)
    				continue
    			}
    			if substr {
    				if !strings.Contains(gotMsg, unquoted) {
    					continue
    				}
    			} else {
    				rx, err := regexp.Compile(unquoted)
    				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)
  9. src/cmd/asm/internal/lex/input.go

    // #include processing.
    func (in *Input) include() {
    	// Find and parse string.
    	tok := in.Stack.Next()
    	if tok != scanner.String {
    		in.expectText("expected string after #include")
    	}
    	name, err := strconv.Unquote(in.Stack.Text())
    	if err != nil {
    		in.Error("unquoting include file name: ", err)
    	}
    	in.expectNewline("#include")
    	// Push tokenizer for file onto stack.
    	fd, err := os.Open(name)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_minimize.txt

    	// Make sure that there were exactly 100 bytes written to the corpus entry
    	prefix := []byte("[]byte(")
    	i := bytes.Index(got, prefix)
    	gotBytes := got[i+len(prefix) : len(got)-1]
    	s, err := strconv.Unquote(string(gotBytes))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if want, got := numBytes, len(s); want != got {
    		fmt.Fprintf(os.Stderr, "want %d bytes, got %d\n", want, got)
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 22 16:15:36 UTC 2021
    - 5.8K bytes
    - Viewed (0)
Back to top