- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 602 for parsego (0.22 sec)
-
test/stress/parsego.go
return isGoFile(dir) && !strings.HasSuffix(dir.Name(), "_test.go") // ignore test files } func pkgName(filename string) string { file, err := parser.ParseFile(token.NewFileSet(), filename, nil, parser.PackageClauseOnly) if err != nil || file == nil { return "" } return file.Name.Name } func parseDir(dirpath string) map[string]*ast.Package {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 4.1K bytes - Viewed (0) -
test/stress/runstress.go
doMaps = flag.Bool("maps", true, "stress maps") doExec = flag.Bool("exec", true, "stress exec") doChan = flag.Bool("chan", true, "stress channels") doNet = flag.Bool("net", true, "stress networking") doParseGo = flag.Bool("parsego", true, "stress parsing Go (generates garbage)") ) func Println(a ...interface{}) { if *v { log.Println(a...) } } func dialStress(a net.Addr) { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:35 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/cgo/ast.go
// license that can be found in the LICENSE file. // Parse input AST and prepare Prog structure. package main import ( "fmt" "go/ast" "go/format" "go/parser" "go/scanner" "go/token" "os" "strings" ) func parse(name string, src []byte, flags parser.Mode) *ast.File { ast1, err := parser.ParseFile(fset, name, src, flags) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/text/template/parse/parse.go
case *WithNode: default: panic("unknown node: " + n.String()) } return false } // parse is the top-level parser for a template, essentially the same // as itemList except it also parses {{define}} actions. // It runs to EOF. func (t *Tree) parse() { t.Root = t.newList(t.peek().pos) for t.peek().typ != itemEOF { if t.peek().typ == itemLeftDelim { delim := t.next()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
tools/docker-builder/dockerfile/parse.go
Value []string // The contents of the command (ex: `ubuntu:xenial`) } // parseFile parses a Dockerfile from a filename. func parseFile(filename string) ([]Command, error) { file, err := os.Open(filename) if err != nil { return nil, err } defer file.Close() res, err := parser.Parse(file) if err != nil { return nil, err } var ret []Command
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 5.8K bytes - Viewed (0) -
src/text/template/helper.go
func parseGlob(t *Template, pattern string) (*Template, error) { filenames, err := filepath.Glob(pattern) if err != nil { return nil, err } if len(filenames) == 0 { return nil, fmt.Errorf("template: pattern matches no files: %#q", pattern) } return parseFiles(t, readFileOS, filenames...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:54:08 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/util/iptables/testing/parse.go
var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil)) // ParseRule parses rule. If strict is false, it will parse the recognized // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are // unrecognized parameters. func ParseRule(rule string, strict bool) (*Rule, error) { parsed := &Rule{Raw: rule} // Split rule into "words" (where a quoted string is a single word).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/jit/device_util.cc
DeviceNameUtils::ParsedName parsed0, parsed1; if (!DeviceNameUtils::ParseFullName(name0, &parsed0) || !DeviceNameUtils::ParseFullName(name1, &parsed1) || !DeviceNameUtils::AreCompatibleDevNames(parsed0, parsed1)) { return true; } if (DeviceNameUtils::IsSpecification(parsed0, parsed1)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 7.8K bytes - Viewed (0) -
src/go/doc/comment/parse.go
if isStdPkg(name) { return name, true } return "", false } // Parse parses the doc comment text and returns the *[Doc] form. // Comment markers (/* // and */) in the text must have already been removed. func (p *Parser) Parse(text string) *Doc { lines := unindent(strings.Split(text, "\n")) d := &parseDoc{ Parser: p, Doc: new(Doc), links: make(map[string]*LinkDef), lines: lines,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0) -
src/crypto/x509/parser.go
return errors.New("x509: SAN uniformResourceIdentifier is malformed") } uri, err := url.Parse(uriStr) if err != nil { return fmt.Errorf("x509: cannot parse URI %q: %s", uriStr, err) } if len(uri.Host) > 0 { if _, ok := domainToReverseLabels(uri.Host); !ok { return fmt.Errorf("x509: cannot parse URI %q: invalid domain", uriStr) } } uris = append(uris, uri) case nameTypeIP:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 38.5K bytes - Viewed (0)