- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for exists (1.05 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
/* Prepare to write files */ // if either file exists, someone has been here ahead of us // (there is still a race, but this check shortens the open window) if _, err := os.Stat(localFileName); err == nil { u.deleteFiles(countFiles) return "", fmt.Errorf("local report %s already exists", localFileName) } if _, err := os.Stat(uploadFileName); err == nil { u.deleteFiles(countFiles)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
// Do not remove/overwrite if dst exists and is a directory // or a non-empty non-object file. if fi, err := os.Stat(dst); err == nil { if fi.IsDir() { return fmt.Errorf("build output %q already exists and is a directory", dst) } if !force && fi.Mode().IsRegular() && fi.Size() != 0 && !isObject(dst) { return fmt.Errorf("build output %q already exists and is not an object file", dst) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
if os.IsNotExist(err) { // Semantically the module version itself “exists” — we just don't // have its source code. Remove the equivalence to os.ErrNotExist, // and make the message more concise while we're at it. err = fmt.Errorf("replacement directory %s does not exist", r.Path) } else { err = fmt.Errorf("replacement directory %s: %w", r.Path, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
return "", err } ziphashfile := zipfile + "hash" // Return without locking if the zip and ziphash files exist. if _, err := os.Stat(zipfile); err == nil { if _, err := os.Stat(ziphashfile); err == nil { return zipfile, nil } } // The zip or ziphash file does not exist. Acquire the lock and create them. if cfg.CmdName != "mod download" { vers := mod.Version
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
return inst, nil } // instance instantiates the given original (generic) function or type with the // provided type arguments and returns the resulting instance. If an identical // instance exists already in the given contexts, it returns that instance, // otherwise it creates a new one. // // If expanding is non-nil, it is the Named instance type currently being
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/validtype.go
check.validType0(nopos, typ, nil, nil) } // validType0 checks if the given type is valid. If typ is a type parameter // its value is looked up in the type argument list of the instantiated // (enclosing) type, if it exists. Otherwise the type parameter must be from // an enclosing function and can be ignored. // The nest list describes the stack (the "nest in memory") of types which
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 13:22:37 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/language/language.go
// NumCompactTags-1. const NumCompactTags = compact.NumCompactTags // CompactIndex returns an index, where 0 <= index < NumCompactTags, for tags // for which data exists in the text repository.The index will change over time // and should not be stored in persistent storage. If t does not match a compact // index, exact will be false and the compact index will be returned for the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 18.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
// prints the executable version and exits 0. // // If the -V flag already exists — for example, because it was already // registered by a call to cmd/internal/objabi.AddVersionFlag — then // addVersionFlag does nothing. func addVersionFlag() { if flag.Lookup("V") == nil { flag.Var(versionFlag{}, "V", "print version and exit") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
inherited := true switch { case s.Type != nil || s.Values != nil: last = s inherited = false case last == nil: last = new(syntax.ConstDecl) // make sure last exists inherited = false } // declare all constants values := syntax.UnpackListExpr(last.Values) for i, name := range s.NameList { obj := NewConst(name.Pos(), pkg, name.Value, nil, iota)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
} // Prevent duplicates in matches' values. if _, ok = seen[obj]; ok { return true } seen[obj] = struct{}{} // Find the scope for the given position. Then, check whether the object // exists within the scope. innerScope := pkg.Scope().Innermost(pos) if innerScope == nil { return true } _, foundObj := innerScope.LookupParent(ident.Name, pos) if foundObj != obj { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0)