utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfigDirectory

func GetDefaultConfigDirectory(serviceName string) string

GetDefaultConfigDirectory 获取默认配置目录(用于服务配置)

func GetDefaultLogDirectory

func GetDefaultLogDirectory() string

GetDefaultLogDirectory 获取默认日志目录

func GetDefaultWorkspace

func GetDefaultWorkspace() string

GetDefaultWorkspace 获取默认工作目录

func GetHomeDir

func GetHomeDir() string

GetHomeDir 获取用户主目录

func IsPrivilegedUser

func IsPrivilegedUser() bool

IsPrivilegedUser 检查当前是否为特权用户(root)

Types

This section is empty.

Jump to

Keyboard shortcuts

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