func Getwd() (string, error) {
	once.Do(func() {
		workDirPath, workDirPathErr = getwdUncached()
	})
	return workDirPath, workDirPathErr
}
// Getwd replaces os.Getwd and caches the result.
Getwd replaces os.Getwd and caches the result.
// Getwd replaces os . Getwd and caches the result .
func Getwd() (string, error) {
	once.Do(func() {
		workDirPath, workDirPathErr = getwdUncached()
	})
	return workDirPath, workDirPathErr
}
func Getwd ( ) ( string , error ) { once . Do ( func ( ) { workDirPath , workDirPathErr = getwdUncached ( ) } ) return workDirPath , workDirPathErr }
Getwd replaces os.Getwd and caches the result.
Getwd replaces os . Getwd and caches the result .