- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 111 for WriteString (0.14 sec)
-
clause/order_by.go
} else { for idx, column := range orderBy.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column.Column) if column.Desc { builder.WriteString(" DESC") } } } } // MergeClause merge order by clauses func (orderBy OrderBy) MergeClause(clause *Clause) { if v, ok := clause.Expression.(OrderBy); ok {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Tue Nov 03 02:30:05 UTC 2020 - 1.1K bytes - Viewed (0) -
internal/disk/stat_test.go
} for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.stat) tmpfile.Sync() tmpfile.Close() iostats, err := readDriveStats(tmpfile.Name()) if err != nil && !testCase.expectErr { t.Fatalf("unexpected err; %v", err) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 3.5K bytes - Viewed (0) -
cmd/common-main_test.go
}, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.content) tmpfile.Sync() tmpfile.Close() value, err := readFromSecret(tmpfile.Name()) if err != nil && !testCase.expectedErr { t.Error(err) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
cmd/background-newdisks-heal-ops_gen.go
err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68) if err != nil { return } err = en.WriteString(z.Path) if err != nil { err = msgp.WrapError(err, "Path") return } // write "Endpoint" err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74) if err != nil { return } err = en.WriteString(z.Endpoint) if err != nil { err = msgp.WrapError(err, "Endpoint") return }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Aug 20 15:42:49 UTC 2024 - 24.6K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
f, err := os.CreateTemp("", "") if err != nil { t.Fatal(err) } name1 := f.Name() defer os.Remove(name1) f.WriteString("aaaaaaaaaa") f.Close() f, err = os.CreateTemp("", "") if err != nil { t.Fatal(err) } name2 := f.Name() defer os.Remove(name2) f.WriteString("bbbbbbbbbb") f.Close() if err = AppendFile(name1, name2, false); err != nil { t.Error(err) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
clause/update.go
} // Name update clause name func (update Update) Name() string { return "UPDATE" } // Build build update clause func (update Update) Build(builder Builder) { if update.Modifier != "" { builder.WriteString(update.Modifier) builder.WriteByte(' ') } if update.Table.Name == "" { builder.WriteQuoted(currentTable) } else { builder.WriteQuoted(update.Table) } } // MergeClause merge update clause
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Mon Mar 09 09:07:00 UTC 2020 - 737 bytes - Viewed (0) -
internal/bucket/lifecycle/rule.go
return r.Filter.Tag.String() } if len(r.Filter.And.Tags) != 0 { var buf bytes.Buffer for _, t := range r.Filter.And.Tags { if buf.Len() > 0 { buf.WriteString("&") } buf.WriteString(t.String()) } return buf.String() } return "" } // Validate - validates the rule element func (r Rule) Validate() error { if err := r.validateID(); err != nil {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/debugging/pprofgoparser/main.go
} func parseGoroutineType2(path string) (map[time.Duration][]string, error) { f, err := os.Open(path) if err != nil { return nil, err } bf := bytes.Buffer{} save := func(s string) { bf.WriteString(s + "\n") } reset := func() { bf.Reset() } ret := make(map[time.Duration][]string) s := bufio.NewScanner(f) s.Split(bufio.ScanLines) var ( t time.Duration
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Mar 06 11:43:16 UTC 2024 - 3.4K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
type FileParseError struct{} const FileParseString = "Some files couldn't be parsed." func (f AnalyzerFoundIssuesError) Error() string { var sb strings.Builder sb.WriteString(fmt.Sprintf("Analyzers found issues when analyzing %s.\n", analyzeTargetAsString())) sb.WriteString(fmt.Sprintf("See %s for more information about causes and resolutions.", url.ConfigAnalysis)) return sb.String() } func (f FileParseError) Error() string {
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Fri Oct 25 03:42:48 UTC 2024 - 17.4K bytes - Viewed (0) -
internal/bucket/replication/datatypes_gen.go
err = msgp.WrapError(err) return } (*z) = StatusType(zb0001) } return } // EncodeMsg implements msgp.Encodable func (z StatusType) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteString(string(z)) if err != nil { err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z StatusType) MarshalMsg(b []byte) (o []byte, err error) {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K bytes - Viewed (0)