- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for parseRules (0.18 sec)
-
src/internal/dag/parse.go
less []string op string // Either "<" or "!<" def []string } type syntaxError string func (e syntaxError) Error() string { return string(e) } // parseRules parses the rules of a DAG. func parseRules(rules string) (out []rule, err error) { defer func() { e := recover() switch e := e.(type) { case nil: return case syntaxError: err = e default: panic(e)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.7K bytes - Viewed (0) -
src/text/template/helper.go
// the last one mentioned will be the one that results. // For instance, ParseFiles("a/foo", "b/foo") stores "b/foo" as the template // named "foo", while "a/foo" is unavailable. func ParseFiles(filenames ...string) (*Template, error) { return parseFiles(nil, readFileOS, filenames...) } // ParseFiles parses the named files and associates the resulting templates with
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:54:08 UTC 2024 - 6.4K bytes - Viewed (0) -
src/go/types/gotype.go
if _, nogo := err.(*build.NoGoError); err != nil && !nogo { return nil, err } if *xtestFiles { return parseFiles(dir, pkginfo.XTestGoFiles) } filenames := append(pkginfo.GoFiles, pkginfo.CgoFiles...) if *testFiles { filenames = append(filenames, pkginfo.TestGoFiles...) } return parseFiles(dir, filenames) } func getPkgFiles(args []string) ([]*ast.File, error) { if len(args) == 0 { // stdin
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
src/html/template/multi_test.go
} testExecute(multiExecTests, template, t) } func TestParseFiles(t *testing.T) { _, err := ParseFiles("DOES NOT EXIST") if err == nil { t.Error("expected error for non-existent file; got none") } template := New("root") _, err = template.ParseFiles("testdata/file1.tmpl", "testdata/file2.tmpl") if err != nil { t.Fatalf("error parsing files: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:48:16 UTC 2022 - 8K bytes - Viewed (0) -
src/html/template/template_test.go
} func TestRedefineOtherParsers(t *testing.T) { c := newTestCase(t) c.mustParse(c.root, ``) c.mustExecute(c.root, nil, ``) if _, err := c.root.ParseFiles("no.template"); err == nil || !strings.Contains(err.Error(), "Execute") { t.Errorf("ParseFiles: %v\nwanted error about already having Executed", err) } if _, err := c.root.ParseGlob("*.no.template"); err == nil || !strings.Contains(err.Error(), "Execute") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:48:16 UTC 2022 - 6.2K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
p.packages[bp.ImportPath] = nil } }() var filenames []string filenames = append(filenames, bp.GoFiles...) filenames = append(filenames, bp.CgoFiles...) files, err := p.parseFiles(bp.Dir, filenames) if err != nil { return nil, err } // type-check package files var firstHardErr error conf := types.Config{ IgnoreFuncBodies: true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
src/text/template/template.go
for _, v := range t.tmpl { m = append(m, v) } return m } // Delims sets the action delimiters to the specified strings, to be used in // subsequent calls to [Template.Parse], [Template.ParseFiles], or [Template.ParseGlob]. Nested template // definitions will inherit the settings. An empty delimiter stands for the // corresponding default: {{ or }}. // The return value is the template, so calls can be chained.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/util/iptables/testing/fake.go
return false, err } rule := "-A " + string(chain) + " " + strings.Join(args, " ") for _, r := range c.Rules { if r.Raw == rule { return true, nil } } parsed, err := ParseRule(rule, false) if err != nil { return false, err } if position == iptables.Append { c.Rules = append(c.Rules, parsed) } else { c.Rules = append([]*Rule{parsed}, c.Rules...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 8.5K bytes - Viewed (0)