Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for parseGlob (0.56 sec)

  1. src/text/template/helper.go

    // the last one mentioned will be the one that results.
    func (t *Template) ParseGlob(pattern string) (*Template, error) {
    	t.init()
    	return parseGlob(t, pattern)
    }
    
    // parseGlob is the implementation of the function and method ParseGlob.
    func parseGlob(t *Template, pattern string) (*Template, error) {
    	filenames, err := filepath.Glob(pattern)
    	if err != nil {
    		return nil, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:54:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/html/template/template.go

    // the last one mentioned will be the one that results.
    //
    // ParseGlob returns an error if t or any associated template has already been executed.
    func (t *Template) ParseGlob(pattern string) (*Template, error) {
    	return parseGlob(t, pattern)
    }
    
    // parseGlob is the implementation of the function and method ParseGlob.
    func parseGlob(t *Template, pattern string) (*Template, error) {
    	if err := t.checkCanParse(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. cni/pkg/log/uds_test.go

    	i := 0
    	for _, l := range gotLogs {
    		var parsedLog map[string]any
    		assert.NoError(t, json.Unmarshal([]byte(l), &parsedLog))
    		if parsedLog["scope"] != "cni-plugin" {
    			// Each log is 2x: one direct, and one over UDS. Just test the UDS one
    			continue
    		}
    		// remove scope since it is constant and not needed to test
    		delete(parsedLog, "scope")
    		// check time is there
    		if _, f := parsedLog["time"]; !f {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Template).New", Method, 0},
    		{"(*Template).Option", Method, 5},
    		{"(*Template).Parse", Method, 0},
    		{"(*Template).ParseFS", Method, 16},
    		{"(*Template).ParseFiles", Method, 0},
    		{"(*Template).ParseGlob", Method, 0},
    		{"(*Template).Templates", Method, 0},
    		{"CSS", Type, 0},
    		{"ErrAmbigContext", Const, 0},
    		{"ErrBadHTML", Const, 0},
    		{"ErrBranchEnd", Const, 0},
    		{"ErrEndContext", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top