Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fetchYaml (0.24 sec)

  1. cmd/yamlfmt/yamlfmt.go

    	flag.Parse()
    	for _, path := range flag.Args() {
    		sourceYaml, err := os.ReadFile(path)
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "%s: %v\n", path, err)
    			continue
    		}
    		rootNode, err := fetchYaml(sourceYaml)
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "%s: %v\n", path, err)
    			continue
    		}
    		writer, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 17 06:23:22 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. cmd/yamlfmt/yamlfmt_test.go

    labels:
    - sig/architecture
    `
    
    	outputYaml := `# See the OWNERS docs at https://go.k8s.io/owners
    approvers:
      - dep-approvers
      - thockin # Network
      - liggitt
    labels:
      - sig/architecture
    `
    	node, _ := fetchYaml([]byte(sourceYaml))
    	var output bytes.Buffer
    	indent := 2
    	writer := bufio.NewWriter(&output)
    	_ = streamYaml(writer, &indent, node)
    	_ = writer.Flush()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 10 02:31:03 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. docs_src/async_sql_databases/tutorial001.py

    @app.on_event("shutdown")
    async def shutdown():
        await database.disconnect()
    
    
    @app.get("/notes/", response_model=List[Note])
    async def read_notes():
        query = notes.select()
        return await database.fetch_all(query)
    
    
    @app.post("/notes/", response_model=Note)
    async def create_note(note: NoteIn):
        query = notes.insert().values(text=note.text, completed=note.completed)
        last_record_id = await database.execute(query)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  4. cmd/prune-junit-xml/prunexml.go

    	for _, path := range flag.Args() {
    		fmt.Printf("processing junit xml file : %s\n", path)
    		xmlReader, err := os.Open(path)
    		if err != nil {
    			panic(err)
    		}
    		defer xmlReader.Close()
    		suites, err := fetchXML(xmlReader) // convert MB into bytes (roughly!)
    		if err != nil {
    			panic(err)
    		}
    
    		pruneXML(suites, *maxTextSize*1e6) // convert MB into bytes (roughly!)
    		if *pruneTests {
    			pruneTESTS(suites)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 12:26:00 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. cmd/prune-junit-xml/prunexml_test.go

    			<failure message="Failed" type="">&#xA;&#x9;/home/prow/go/[...clipped...]t_metrics.go:160</failure>
    		</testcase>
    	</testsuite>
    </testsuites>`
    	suites, _ := fetchXML(strings.NewReader(sourceXML))
    	pruneXML(suites, 32)
    	var output bytes.Buffer
    	writer := bufio.NewWriter(&output)
    	_ = streamXML(writer, suites)
    	_ = writer.Flush()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 12:26:00 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modfetch/codehost/git.go

    }
    
    const (
    	// How much have we fetched into the git repo (in this process)?
    	fetchNone = iota // nothing yet
    	fetchSome        // shallow fetches of individual hashes
    	fetchAll         // "fetch -t origin": get all remote branches and tags
    )
    
    // loadLocalTags loads tag references from the local git cache
    // into the map r.localTags.
    func (r *gitRepo) loadLocalTags(ctx context.Context) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top