Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. src/text/template/multi_test.go

    }
    
    func TestParseGlob(t *testing.T) {
    	_, err := ParseGlob("DOES NOT EXIST")
    	if err == nil {
    		t.Error("expected error for non-existent file; got none")
    	}
    	_, err = New("error").ParseGlob("[x")
    	if err == nil {
    		t.Error("expected error for bad pattern; got none")
    	}
    	template := New("root")
    	_, err = template.ParseGlob("testdata/file*.tmpl")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  3. src/text/template/doc.go

    values, or must be copied with [Template.Clone] or [Template.AddParseTree].
    
    Parse may be called multiple times to assemble the various associated templates;
    see [ParseFiles], [ParseGlob], [Template.ParseFiles] and [Template.ParseGlob]
    for simple ways to parse related templates stored in files.
    
    A template may be executed directly or through [Template.ExecuteTemplate], which executes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. ci/official/utilities/extract_resultstore_links.py

      parsed_args = parser.parse_args()
      if not parsed_args.print and not parsed_args.xml_out_path:
        raise TypeError('`--print` or `--xml-out-path` must be specified')
    
      return parsed_args
    
    
    def parse_log(file_path: str,
                  verbose: bool = False) -> ResultDictType:
      """Finds ResultStore links, and tries to determine their status."""
      with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 17:50:27 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top