- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for UserConfigdir (0.63 sec)
-
src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go
config } // settingsFileName returns the name of the file where settings should be saved. func settingsFileName() (string, error) { // Return "pprof/settings.json" under os.UserConfigDir(). dir, err := os.UserConfigDir() if err != nil { return "", err } return filepath.Join(dir, "pprof", "settings.json"), nil } // readSettings reads settings from fname.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/telemetry.txt
# We want to unset it so the environment we're testing is as close # to a user's environment. go help telemetry env TEST_TELEMETRY_DIR= # Set userconfig dir, which is determined by os.UserConfigDir. # The telemetry dir is determined using that. mkdir $WORK/userconfig env AppData=$WORK\userconfig # windows [GOOS:windows] env userconfig=$AppData env HOME=$WORK/userconfig # darwin,unix,ios
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 20:16:39 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/Doc.txt
The upload process converts count files into reports, and uploads reports. There will be only one report, named YYYY-MM-DD.json, for a given day. First phase. Look at the localdir (os.UserConfigdir()/go/telemetry/local) and find all .count and .json files. Find the count files that are no longer active by looking at their metadata. Second phase. Group the inactive count files by their expiry date, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/dir.go
local: filepath.Join(dir, "local"), upload: filepath.Join(dir, "upload"), debug: filepath.Join(dir, "debug"), modefile: filepath.Join(dir, "mode"), } } func init() { cfgDir, err := os.UserConfigDir() if err != nil { return } Default = NewDir(filepath.Join(cfgDir, "go", "telemetry")) } func (d Dir) Dir() string { return d.dir } func (d Dir) LocalDir() string { return d.local }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:13:09 UTC 2024 - 4.8K bytes - Viewed (0) -
src/os/example_test.go
} // Read and store cached data. // … _ = getCache _ = putCache // Output: } func ExampleUserConfigDir() { dir, dirErr := os.UserConfigDir() var ( configPath string origConfig []byte ) if dirErr == nil { configPath = filepath.Join(dir, "ExampleUserConfigDir", "example.conf") var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/start.go
// The boolean indicates whether the token was acquired. func acquireUploadToken() bool { if telemetry.Default.LocalDir() == "" { // The telemetry dir wasn't initialized properly, probably because // os.UserConfigDir did not complete successfully. In that case // there are no counters to upload, so we should just do nothing. return false } tokenfile := filepath.Join(telemetry.Default.LocalDir(), "upload.token")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.8K bytes - Viewed (0) -
src/os/file.go
dir = Getenv("HOME") if dir == "" { return "", errors.New("neither $XDG_CACHE_HOME nor $HOME are defined") } dir += "/.cache" } } return dir, nil } // UserConfigDir returns the default root directory to use for user-specific // configuration data. Users should create their own application-specific // subdirectory within this one and use that. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
func EnvFile() (string, bool, error) { if file := os.Getenv("GOENV"); file != "" { if file == "off" { return "", false, fmt.Errorf("GOENV=off") } return file, true, nil } dir, err := os.UserConfigDir() if err != nil { return "", false, err } if dir == "" { return "", false, fmt.Errorf("missing user-config dir") } return filepath.Join(dir, "go/env"), false, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/go/internal/help/helpdoc.go
run 'go env -w <NAME>=<VALUE>'. Defaults changed using 'go env -w' are recorded in a Go environment configuration file stored in the per-user configuration directory, as reported by os.UserConfigDir. The location of the configuration file can be changed by setting the environment variable GOENV, and 'go env GOENV' prints the effective location, but 'go env -w' cannot change the default location.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 36.3K bytes - Viewed (0) -
src/os/os_test.go
t.Fatalf("dir %s is not directory; type = %v", dir, fi.Mode()) } } func TestUserConfigDir(t *testing.T) { t.Parallel() dir, err := UserConfigDir() if err != nil { t.Skipf("skipping: %v", err) } if dir == "" { t.Fatalf("UserConfigDir returned %q; want non-empty path or error", dir) } fi, err := Stat(dir) if err != nil { if IsNotExist(err) { t.Log(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)