2020-07-18 08:27:41 -07:00
|
|
|
// Copyright 2020 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-10-16 15:47:22 -07:00
|
|
|
//go:build go1.13
|
2020-07-18 08:27:41 -07:00
|
|
|
// +build go1.13
|
|
|
|
|
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
func getOSUserConfigDir() string {
|
|
|
|
configDir, err := os.UserConfigDir()
|
|
|
|
if err != nil {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
return configDir
|
|
|
|
}
|