utils

package
v0.0.0-...-afa1935 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser() string

CurrentUser 获取当前SSH连接的用户

func GenRandomString

func GenRandomString(length int, specialChar bool) string

GenRandomString 生成随机字符串 length 生成长度 specialChar 是否生成特殊字符

func IgnoreFile

func IgnoreFile(ignoreFiles []string, filename string) bool

IgnoreFile Check if the file is contains the ignore file

func RandomString

func RandomString(n int) string

RandomString 导出随机字符串

func UserHome

func UserHome() (string, error)

UserHome 获取用户的家目录

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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