- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 455 for fmt (0.02 sec)
-
internal/hash/errors.go
type SizeTooSmall struct { Want int64 Got int64 } func (e SizeTooSmall) Error() string { return fmt.Sprintf("Size small: got %d, want %d", e.Got, e.Want) } // SizeTooLarge reader size too large type SizeTooLarge struct { Want int64 Got int64 } func (e SizeTooLarge) Error() string { return fmt.Sprintf("Size large: got %d, want %d", e.Got, e.Want) } // SizeMismatch error size mismatchRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon May 15 21:08:54 UTC 2023 - 2.4K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
jp := JSONPath{} err := p.ParseString(tc.str, &jp) // fmt.Println(jp) if err != nil { t.Fatalf("parse failed!: %d %v %s", i, err, tc) } // Read only the first json object from the file recs, err := getJSONStructs(b) if err != nil || len(recs) != 3 { t.Fatalf("%v or length was not 3", err) } for j, rec := range recs { // fmt.Println(rec) r, _, err := jsonpathEval(jp.PathExpr, rec)Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.7K bytes - Viewed (0) -
cmd/sftp-server.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 16.5K bytes - Viewed (0) -
cmd/callhome.go
}{Version: healthInfo.Version} enc := json.NewEncoder(gzWriter) if e := enc.Encode(header); e != nil { internalLogIf(ctx, fmt.Errorf("Could not encode health info header: %w", e)) return nil } if e := enc.Encode(healthInfo); e != nil { internalLogIf(ctx, fmt.Errorf("Could not encode health info: %w", e)) return nil } gzWriter.Flush() gzWriter.Close() return b.Bytes()Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.3K bytes - Viewed (0) -
schema/serializer.go
if rv.IsZero() { return nil, nil } if uv := rv.Elem().Uint(); uv > math.MaxInt64 { err = fmt.Errorf("integer overflow conversion uint64(%d) -> int64", uv) } else { result = time.Unix(int64(uv), 0).UTC() //nolint:gosec } default: err = fmt.Errorf("invalid field type %#v for UnixSecondSerializer, only int, uint supported", fieldValue) } return }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Oct 26 12:29:44 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/iam/access-manager-plugin.go
json.NewEncoder(w).Encode(map[string]string{ "error": fmt.Sprintf("%v", err), }) } type Result struct { Result bool `json:"result"` } func mainHandler(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) if err != nil { writeErrorResponse(w, err) return } var out bytes.Buffer json.Indent(&out, body, "", " ") fmt.Printf("Received JSON payload:\n%s\n", out.String())
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Feb 08 17:15:20 UTC 2024 - 2.7K bytes - Viewed (0) -
internal/event/target/mysql.go
return fmt.Errorf("unrecognized format") } } if m.Table == "" { return fmt.Errorf("table unspecified") } if m.DSN != "" { if _, err := mysql.ParseDSN(m.DSN); err != nil { return err } } else { // Some fields need to be specified when DSN is unspecified if m.Port == "" { return fmt.Errorf("unspecified port") }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 11.6K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
switch retention.Mode { case RetGovernance, RetCompliance: default: return fmt.Errorf("unknown retention mode %v", retention.Mode) } if retention.Days == nil && retention.Years == nil { return fmt.Errorf("either Days or Years must be specified") } if retention.Days != nil && retention.Years != nil { return fmt.Errorf("either Days or Years must be specified, not both") } //nolint:gocriticRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 17.9K bytes - Viewed (0) -
internal/hash/crc.go
// Checksum types must match. func (c *Checksum) AddPart(other Checksum, size int64) error { if !other.Type.CanMerge() { return fmt.Errorf("checksum type cannot be merged") } if size == 0 { return nil } if !c.Type.Is(other.Type.Base()) { return fmt.Errorf("checksum type does not match got %s and %s", c.Type.String(), other.Type.String()) } // If never set, just add first checksum. if len(c.Raw) == 0 {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jan 20 14:49:07 UTC 2025 - 5.8K bytes - Viewed (0) -
misc/cgo/gmp/pi.go
i := 0 k := int64(0) for { d := int64(-1) for d < 0 { k++ nextTerm(k) d = extractDigit() } eliminateDigit(d) fmt.Printf("%c", d+'0') if i++; i%50 == 0 { fmt.Printf("\n") if i >= 1000 { break } } } fmt.Printf("\n%d calls; bit sizes: %d %d %d\n", runtime.NumCgoCall(), numer.Len(), accum.Len(), denom.Len())
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 1.3K bytes - Viewed (0)