Documentation
¶
Index ¶
- func EnsureConfigDir() error
- func FileExists(path string) bool
- func GetConfigDir() (string, error)
- func GetConfigPath() (string, error)
- func GetCurrentUser() (string, error)
- func GetCurrentUserHome() (string, error)
- func GetCurrentUserInfo() (*user.User, error)
- func GetOS() string
- func IsDir(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureConfigDir ¶
func EnsureConfigDir() error
EnsureConfigDir cria o diretório de configuração se não existir
func GetConfigDir ¶
GetConfigDir retorna o diretório de configuração baseado no OS
func GetConfigPath ¶
GetConfigPath retorna o caminho completo do arquivo de configuração
func GetCurrentUser ¶ added in v0.3.0
GetCurrentUser retorna o nome do usuário atual
func GetCurrentUserHome ¶ added in v0.3.0
GetCurrentUserHome retorna o diretório home do usuário atual
func GetCurrentUserInfo ¶ added in v0.3.0
GetCurrentUserInfo retorna todas as informações do usuário
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.