- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 343 for unquote (0.31 sec)
-
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) -
src/cmd/go/testdata/vcstest/hg/vgotest1.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 16:48:06 UTC 2022 - 9.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
src/go/types/struct.go
err.addAltDecl(alt) err.report() return false } return true } func (check *Checker) tag(t *ast.BasicLit) string { if t != nil { if t.Kind == token.STRING { if val, err := strconv.Unquote(t.Value); err == nil { return val } } check.errorf(t, InvalidSyntaxTree, "incorrect tag syntax: %q", t.Value) } return ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 8.8K bytes - Viewed (0)