- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 1,265 for Return (0.03 seconds)
-
internal/grid/msg_gen.go
if err != nil { return } err = en.WriteTime(z.Time) if err != nil { err = msgp.WrapError(err, "Time") return } // write "Token" err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e) if err != nil { return } err = en.WriteString(z.Token) if err != nil { err = msgp.WrapError(err, "Token") return } return } // MarshalMsg implements msgp.MarshalerCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 22.4K bytes - Click Count (0) -
cmd/utils.go
// Upon error just return Go-syntax representation of the value return fmt.Sprintf("%#v", req) } // Formatted string. return strings.TrimSpace(buffer.String()) } // isFile - returns whether given path is a file or not. func isFile(path string) bool { if fi, err := os.Stat(path); err == nil { return fi.Mode().IsRegular() } return false }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 33K bytes - Click Count (0) -
cmd/bucket-notification-handlers.go
} writeErrorResponse(ctx, w, apiErr, r.URL) return } configData, err := xml.Marshal(config) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } if _, err = globalBucketMetadataSys.Update(ctx, bucketName, bucketNotificationConfig, configData); err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } rulesMap := config.ToRulesMap()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 5.1K bytes - Click Count (0) -
cmd/dummy-data-generator_test.go
n -= int(extraBytes) if n < 0 { n = 0 } err = io.EOF } return n, err } func (d *DummyDataGen) Seek(offset int64, whence int) (int64, error) { switch whence { case io.SeekStart: if offset < 0 { return 0, errors.New("Invalid offset") } d.idx = offset case io.SeekCurrent: if d.idx+offset < 0 { return 0, errors.New("Invalid offset") } d.idx += offset case io.SeekEnd:
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0) -
cmd/bucket-policy-handlers.go
Description: err.Error(), }, r.URL) return } // Version in policy must not be empty if bucketPolicy.Version == "" { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPolicyInvalidVersion), r.URL) return } configData, err := json.Marshal(bucketPolicy) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 6.1K bytes - Click Count (0) -
src/cmd/asm/internal/lex/input.go
in.Error("unclosed #ifdef or #ifndef") } in.beginningOfLine = tok == '\n' if in.enabled() { in.text = in.Stack.Text() return tok } } } in.Error("recursive macro invocation") return 0 } func (in *Input) Text() string { return in.text } // hash processes a # preprocessor directive. It reports whether it completes. func (in *Input) hash() bool {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Nov 12 03:59:40 GMT 2025 - 12.4K bytes - Click Count (0) -
internal/bucket/lifecycle/delmarker-expiration.go
return enc.EncodeElement(delMarkerExpiration(de), start) } // NextDue returns upcoming DelMarkerExpiration date for obj if // applicable, returns false otherwise. func (de DelMarkerExpiration) NextDue(obj ObjectOpts) (time.Time, bool) { if !obj.IsLatest || !obj.DeleteMarker { return time.Time{}, false } return ExpectedExpiryTime(obj.ModTime, de.Days), true
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed May 01 01:11:10 GMT 2024 - 2.3K bytes - Click Count (0) -
src/archive/tar/common.go
func (fi headerFileInfo) ModTime() time.Time { return fi.h.ModTime } func (fi headerFileInfo) Sys() any { return fi.h } // Name returns the base name of the file. func (fi headerFileInfo) Name() string { if fi.IsDir() { return path.Base(path.Clean(fi.h.Name)) } return path.Base(fi.h.Name) } // Mode returns the permission and mode bits for the headerFileInfo.
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 24.5K bytes - Click Count (0) -
cmd/erasure-server-pool-rebalance_gen.go
return } // write "id" err = en.Append(0xa2, 0x69, 0x64) if err != nil { return } err = en.WriteString(z.ID) if err != nil { err = msgp.WrapError(err, "ID") return } // write "pf" err = en.Append(0xa2, 0x70, 0x66) if err != nil { return } err = en.WriteFloat64(z.PercentFreeGoal) if err != nil { err = msgp.WrapError(err, "PercentFreeGoal") return }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.8K bytes - Click Count (0) -
internal/grid/grid_test.go
return &testRequest{} }, func() *testResponse { return &testResponse{} }) // Handles incoming requests, returns a response handler1 := func(req *testRequest) (resp *testResponse, err *RemoteErr) { resp = h1.NewResponse() *resp = testResponse{ OrgNum: req.Num, OrgString: req.String, Embedded: *req, } return resp, nil } // Return errorCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 36.1K bytes - Click Count (0)