Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UncachedCwd (0.46 sec)

  1. src/cmd/go/internal/base/path.go

    	"strings"
    	"sync"
    )
    
    var cwd string
    var cwdOnce sync.Once
    
    // UncachedCwd returns the current working directory.
    // Most callers should use Cwd, which caches the result for future use.
    // UncachedCwd is appropriate to call early in program startup before flag parsing,
    // because the -C flag may change the current directory.
    func UncachedCwd() string {
    	wd, err := os.Getwd()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 19:17:27 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top