utils

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

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 FileExists

func FileExists(path string) bool

FileExists verifica se um arquivo existe

func GetConfigDir

func GetConfigDir() (string, error)

GetConfigDir retorna o diretório de configuração baseado no OS

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath retorna o caminho completo do arquivo de configuração

func GetCurrentUser added in v0.3.0

func GetCurrentUser() (string, error)

GetCurrentUser retorna o nome do usuário atual

func GetCurrentUserHome added in v0.3.0

func GetCurrentUserHome() (string, error)

GetCurrentUserHome retorna o diretório home do usuário atual

func GetCurrentUserInfo added in v0.3.0

func GetCurrentUserInfo() (*user.User, error)

GetCurrentUserInfo retorna todas as informações do usuário

func GetOS added in v0.3.0

func GetOS() string

func IsDir

func IsDir(path string) bool

IsDir verifica se o caminho é um diretório

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL