- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for weekends (0.11 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go
func fileValidity(now time.Time) (int, error) { // If there is no 'weekends' file create it and initialize it // to a random day of the week. There is a short interval for // a race. weekends := filepath.Join(telemetry.Default.LocalDir(), "weekends") day := fmt.Sprintf("%d\n", rand.Intn(7)) if _, err := os.ReadFile(weekends); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/controller/cronjob/utils_test.go
tests := []struct { name string cj *batchv1.CronJob now time.Time expectedDuration time.Duration }{ { name: "complex schedule skipping weekend", cj: &batchv1.CronJob{ ObjectMeta: metav1.ObjectMeta{ CreationTimestamp: metav1TopOfTheHour, }, Spec: batchv1.CronJobSpec{ Schedule: "30 6-16/4 * * 1-5", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 22.8K bytes - Viewed (0) -
src/cmd/internal/archive/archive.go
err error offset int64 limit int64 tmp [256]byte } func (r *objReader) init(f *os.File) { r.a = &Archive{f, nil} r.offset, _ = f.Seek(0, io.SeekCurrent) r.limit, _ = f.Seek(0, io.SeekEnd) f.Seek(r.offset, io.SeekStart) r.b = bio.NewReader(f) } // error records that an error occurred. // It returns only the first error, so that an error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 12.1K bytes - Viewed (0) -
api/go1.7.txt
pkg go/build, type Package struct, FFiles []string pkg go/doc, type Example struct, Unordered bool pkg io, const SeekCurrent = 1 pkg io, const SeekCurrent ideal-int pkg io, const SeekEnd = 2 pkg io, const SeekEnd ideal-int pkg io, const SeekStart = 0 pkg io, const SeekStart ideal-int pkg math/big, method (*Float) GobDecode([]uint8) error pkg math/big, method (*Float) GobEncode() ([]uint8, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 28 15:08:11 UTC 2016 - 13.6K bytes - Viewed (0) -
src/io/io.go
package io import ( "errors" "sync" ) // Seek whence values. const ( SeekStart = 0 // seek relative to the origin of the file SeekCurrent = 1 // seek relative to the current offset SeekEnd = 2 // seek relative to the end ) // ErrShortWrite means that a write accepted fewer bytes than requested // but failed to return an explicit error. var ErrShortWrite = errors.New("short write")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:34:10 UTC 2024 - 21.6K bytes - Viewed (0) -
internal/s3select/select.go
offset, length, err := s3Select.ScanRange.StartLen() if err != nil { return err } seekDirection := io.SeekStart if offset < 0 { seekDirection = io.SeekEnd } switch s3Select.Input.format { case csvFormat: _, err = rsc.Seek(offset, seekDirection) if err != nil { return err } var rc io.ReadCloser = rsc if length != -1 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 21K bytes - Viewed (0) -
src/internal/coverage/decodecounter/decodecounterfile.go
return v[0] == g[0] && v[1] == g[1] && v[2] == g[2] && v[3] == g[3] } func (cdr *CounterDataReader) readFooter() error { ftrSize := int64(unsafe.Sizeof(cdr.ftr)) if _, err := cdr.mr.Seek(-ftrSize, io.SeekEnd); err != nil { return err } if err := binary.Read(cdr.mr, binary.LittleEndian, &cdr.ftr); err != nil { return err } if !checkMagic(cdr.ftr.Magic) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 15:29:54 UTC 2023 - 9.8K bytes - Viewed (0) -
src/internal/zstd/zstd.go
// so check that the new offset is valid by comparing to the end. prev, err := seeker.Seek(0, io.SeekCurrent) if err != nil { return r.wrapError(0, err) } end, err := seeker.Seek(0, io.SeekEnd) if err != nil { return r.wrapError(0, err) } if prev > end-int64(size) { r.blockOffset += end - prev return r.makeEOFError(0) } // The new offset is valid, so seek to it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 04:10:45 UTC 2024 - 12.7K bytes - Viewed (0) -
src/time/zoneinfo_read.go
func (f fileSizeError) Error() string { return "time: file " + string(f) + " is too large" } // Copies of io.Seek* constants to avoid importing "io": const ( seekStart = 0 seekCurrent = 1 seekEnd = 2 ) // Simple I/O interface to binary blob of data. type dataIO struct { p []byte error bool } func (d *dataIO) read(n int) []byte { if len(d.p) < n { d.p = nil d.error = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 14.4K bytes - Viewed (0) -
src/os/file_plan9.go
} } } if e != nil { return nil, &PathError{Op: "open", Path: name, Err: e} } if append { if _, e = syscall.Seek(fd, 0, io.SeekEnd); e != nil { return nil, &PathError{Op: "seek", Path: name, Err: e} } } return NewFile(uintptr(fd), name), nil } func openDirNolog(name string) (*File, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:35:30 UTC 2024 - 16K bytes - Viewed (0)