- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for fetchYaml (0.13 sec)
-
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: 2024-06-15 01:39 - Last Modified: 2023-05-17 06:23 - 1.7K bytes - Viewed (0) -
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: 2024-06-15 01:39 - Last Modified: 2021-12-10 02:31 - 1.3K bytes - Viewed (0) -
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: 2024-06-17 08:32 - Last Modified: 2020-03-26 19:09 - 1.4K bytes - Viewed (0) -
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: 2024-06-15 01:39 - Last Modified: 2023-06-06 12:26 - 4.4K bytes - Viewed (0) -
cmd/prune-junit-xml/prunexml_test.go
<failure message="Failed" type="">
	/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: 2024-06-15 01:39 - Last Modified: 2023-06-06 12:26 - 8.9K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-03-11 22:10 - 27.4K bytes - Viewed (0)