Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 239 for unquote (0.63 sec)

  1. 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)
  2. 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)
  3. pkg/bootstrap/config.go

    		sl := strings.SplitN(line, "=", 2)
    		if len(sl) != 2 {
    			continue
    		}
    		key := sl[0]
    		// Strip the leading/trailing quotes
    		val, err := strconv.Unquote(sl[1])
    		if err != nil {
    			return nil, fmt.Errorf("failed to unquote %v: %v", sl[1], err)
    		}
    		res[key] = val
    	}
    	return res, nil
    }
    
    func removeDuplicates(values []string) []string {
    	set := sets.New[string]()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    				found = true
    				break
    			}
    		}
    		if !found {
    			continue // not a cgo file
    		}
    
    		// Record the original import map.
    		for _, spec := range raw.Imports {
    			path, _ := strconv.Unquote(spec.Path.Value)
    			importMap[path] = imported(info, spec)
    		}
    
    		// Add special dot-import declaration:
    		//    import . "·this·"
    		var decls []ast.Decl
    		decls = append(decls, &ast.GenDecl{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/vcweb.go

    // git, hg, and svn), a "handle" command that informs the script which protocol
    // or handler to use to serve the request, and utilities "at" (which sets
    // environment variables for Git timestamps) and "unquote" (which unquotes its
    // argument as if it were a Go string literal).
    //
    // The server's "/" endpoint provides a summary of the available scripts,
    // and "/help" provides documentation for the script environment.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/noder/noder.go

    			args = args[1+i+1:]
    
    		case '"':
    			i := 1
    			for ; i < len(args); i++ {
    				if args[i] == '\\' {
    					i++
    					continue
    				}
    				if args[i] == '"' {
    					q, err := strconv.Unquote(args[:i+1])
    					if err != nil {
    						return nil, fmt.Errorf("invalid quoted string in //go:embed: %s", args[:i+1])
    					}
    					path = q
    					args = args[i+1:]
    					break Switch
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    func importName(s *ast.ImportSpec) string {
    	if s.Name == nil {
    		return ""
    	}
    	return s.Name.Name
    }
    
    // importPath returns the unquoted import path of s,
    // or "" if the path is not properly quoted.
    func importPath(s *ast.ImportSpec) string {
    	t, err := strconv.Unquote(s.Path.Value)
    	if err != nil {
    		return ""
    	}
    	return t
    }
    
    // declImports reports whether gen contains an import of path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    			return ast.NewIdent(t.Obj().Name())
    		}
    		pkgName := t.Obj().Pkg().Name()
    
    		// If the file already imports the package under another name, use that.
    		for _, cand := range f.Imports {
    			if path, _ := strconv.Unquote(cand.Path.Value); path == t.Obj().Pkg().Path() {
    				if cand.Name != nil && cand.Name.Name != "" {
    					pkgName = cand.Name.Name
    				}
    			}
    		}
    		if pkgName == "." {
    			return ast.NewIdent(t.Obj().Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/cmd/fix/fix.go

    	for _, s := range f.Imports {
    		if importPath(s) == path {
    			return s
    		}
    	}
    	return nil
    }
    
    // importPath returns the unquoted import path of s,
    // or "" if the path is not properly quoted.
    func importPath(s *ast.ImportSpec) string {
    	t, err := strconv.Unquote(s.Path.Value)
    	if err == nil {
    		return t
    	}
    	return ""
    }
    
    // declImports reports whether gen contains an import of path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  10. src/fmt/scan.go

    func (s *ss) quotedString() string {
    	s.notEOF()
    	quote := s.getRune()
    	switch quote {
    	case '`':
    		// Back-quoted: Anything goes until EOF or back quote.
    		for {
    			r := s.mustReadRune()
    			if r == quote {
    				break
    			}
    			s.buf.writeRune(r)
    		}
    		return string(s.buf)
    	case '"':
    		// Double-quoted: Include the quotes and let strconv.Unquote do the backslash escapes.
    		s.buf.writeByte('"')
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top