- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 285 for errf (0.06 sec)
-
src/cmd/go/internal/script/cmds.go
} var buf strings.Builder errc := make(chan error, 1) go func() { for _, p := range paths { b, err := os.ReadFile(p) buf.Write(b) if err != nil { errc <- err return } } errc <- nil }() wait := func(*State) (stdout, stderr string, err error) { err = <-errc return buf.String(), "", err } return wait, nil }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
switch err := err.(type) { case syntax.Error: return err.Pos, err.Msg case Error: return err.Pos, err.Msg default: return nopos, err.Error() } } // absDiff returns the absolute difference between x and y. func absDiff(x, y uint) uint { if x < y { return y - x } return x - y } // parseFlags parses flags from the first line of the given source if the line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
dstRoot = filepath.Clean(dstRoot) if err := os.MkdirAll(dstRoot, 0777); err != nil { return err } srcRoot, err := filepath.Abs(srcRoot) if err != nil { return err } return filepath.WalkDir(srcRoot, func(srcPath string, d fs.DirEntry, err error) error { if err != nil || srcPath == srcRoot { return err } suffix := strings.TrimPrefix(srcPath, srcRoot)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
mode := perm f, err := os.OpenFile(filepath.Clean(dst)+"-go-tmp-umask", os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm) if err == nil { fi, err := f.Stat() if err == nil { mode = fi.Mode() & 0777 } name := f.Name() f.Close() os.Remove(name) } if err := os.Chmod(src, mode); err == nil { if err := os.Rename(src, dst); err == nil { if cfg.BuildX {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
cmd/format-erasure.go
// countErrs - count a specific error. func countErrs(errs []error, err error) int { i := 0 for _, err1 := range errs { if err1 == err || errors.Is(err1, err) { i++ } } return i } // Does all errors indicate we need to initialize all disks?. func shouldInitErasureDisks(errs []error) bool { return countErrs(errs, errUnformattedDisk) == len(errs) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.2K bytes - Viewed (0) -
cmd/erasure-multipart.go
lkctx, err := uploadIDLock.GetRLock(ctx, globalOperationTimeout) if err != nil { return MultipartInfo{}, err } ctx = lkctx.Context() defer uploadIDLock.RUnlock(lkctx) fi, _, err := er.checkUploadIDExists(ctx, bucket, object, uploadID, false) if err != nil { if errors.Is(err, errVolumeNotFound) { return result, toObjectErr(err, bucket) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 06:56:12 UTC 2024 - 44.8K bytes - Viewed (0) -
pkg/config/analysis/local/istiod_analyze.go
}) var errs error // If we encounter any errors reading or applying files, track them but attempt to continue for _, r := range readers { by, err := io.ReadAll(r.Reader) if err != nil { errs = multierror.Append(errs, err) continue } if err = src.ApplyContent(r.Name, string(by)); err != nil { errs = multierror.Append(errs, err) } } return errs }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 21:06:13 UTC 2024 - 21.6K bytes - Viewed (0) -
pkg/kube/multicluster/secretcontroller.go
continue } logger.Infof("%s cluster", action) remoteCluster, err := c.createRemoteCluster(kubeConfig, clusterID) if err != nil { logger.Errorf("%s cluster: create remote cluster failed: %v", action, err) errs = multierror.Append(errs, err) continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 02:13:10 UTC 2024 - 12.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/wait.go
var err, lastErr error err = wait.PollUntilContextTimeout(context.Background(), constants.KubernetesAPICallRetryInterval, w.timeout, true, func(_ context.Context) (bool, error) { componentPodHash, err = getStaticPodSingleHash(w.client, nodeName, component) if err != nil { lastErr = err return false, nil } return true, nil }) if err != nil { err = lastErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/proxy/topology_test.go
var errs []error expectedCopy := sets.New[string](expected.UnsortedList()...) for _, ep := range actual { if !expectedCopy.Has(ep.String()) { errs = append(errs, fmt.Errorf("unexpected endpoint %v", ep)) } expectedCopy.Delete(ep.String()) } if len(expectedCopy) > 0 { errs = append(errs, fmt.Errorf("missing endpoints %v", expectedCopy.UnsortedList())) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 26.6K bytes - Viewed (0)