Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 663 for unquote (0.12 sec)

  1. src/cmd/go/testdata/vcstest/hg/vgotest1.txt

    # 17
    at 2018-02-19T17:51:24-05:00
    	# README.md at this commit lacked a trailing newline, so 'git apply' can't
    	# seem to apply it correctly as a patch. Instead, we use 'unquote' to write
    	# the exact contents.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:48:06 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  2. src/go/ast/resolve.go

    		importErrors := false
    		fileScope := NewScope(pkgScope)
    		for _, spec := range file.Imports {
    			if importer == nil {
    				importErrors = true
    				continue
    			}
    			path, _ := strconv.Unquote(spec.Path.Value)
    			pkg, err := importer(imports, path)
    			if err != nil {
    				p.errorf(spec.Path.Pos(), "could not import %s (%s)", path, err)
    				importErrors = true
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/dist/imports.go

    			}
    			r.nextByte(false)
    		} else {
    			r.readImport(&imports)
    		}
    	}
    
    	for i := range imports {
    		unquoted, err := strconv.Unquote(imports[i])
    		if err != nil {
    			fatalf("reading imports from %s: %v", file, err)
    		}
    		imports[i] = unquoted
    	}
    
    	return imports
    }
    
    // resolveVendor returns a unique package path imported with the given import
    // path from srcDir.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 21:45:30 UTC 2019
    - 6.3K bytes
    - Viewed (0)
  4. src/log/slog/level.go

    // ignoring case.
    // It also accepts numeric offsets that would result in a different string on
    // output. For example, "Error-8" would marshal as "INFO".
    func (l *Level) UnmarshalJSON(data []byte) error {
    	s, err := strconv.Unquote(string(data))
    	if err != nil {
    		return err
    	}
    	return l.parse(s)
    }
    
    // MarshalText implements [encoding.TextMarshaler]
    // by calling [Level.String].
    func (l Level) MarshalText() ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:34:43 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/vcstest/svn/test1-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
    - 4.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/struct.go

    	return true
    }
    
    func (check *Checker) tag(t *syntax.BasicLit) string {
    	// If t.Bad, an error was reported during parsing.
    	if t != nil && !t.Bad {
    		if t.Kind == syntax.StringLit {
    			if val, err := strconv.Unquote(t.Value); err == nil {
    				return val
    			}
    		}
    		check.errorf(t, InvalidSyntaxTree, "incorrect tag syntax: %q", t.Value)
    	}
    	return ""
    }
    
    func ptrBase(x *syntax.Operation) syntax.Expr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/generate/generate.go

    				switch c {
    				case '\\':
    					if i+1 == len(line) {
    						g.errorf("bad backslash")
    					}
    					i++ // Absorb next byte (If it's a multibyte we'll get an error in Unquote).
    				case '"':
    					word, err := strconv.Unquote(line[0 : i+1])
    					if err != nil {
    						g.errorf("bad quoted string")
    					}
    					words = append(words, word)
    					line = line[i+1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. src/go/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 !isValidImport(path) {
    				// The parser used to return a parse error for invalid import paths, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. pkg/model/proxy.go

    	out := append([]byte{'"'}, b...)
    	out = append(out, '"')
    	return out, nil
    }
    
    func (l *PodPortList) UnmarshalJSON(data []byte) error {
    	var pl []PodPort
    	pls, err := strconv.Unquote(string(data))
    	if err != nil {
    		return err
    	}
    	if err := json.Unmarshal([]byte(pls), &pl); err != nil {
    		return err
    	}
    	*l = pl
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. src/go/ast/import.go

    			}
    		}
    	}
    }
    
    func lineAt(fset *token.FileSet, pos token.Pos) int {
    	return fset.PositionFor(pos, false).Line
    }
    
    func importPath(s Spec) string {
    	t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
    	if err == nil {
    		return t
    	}
    	return ""
    }
    
    func importName(s Spec) string {
    	n := s.(*ImportSpec).Name
    	if n == nil {
    		return ""
    	}
    	return n.Name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top