Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for parseRules (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top