util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(path string)

Active 使某个path生效,即把path放在env的PATH最前面

func DeleteFileIfExist

func DeleteFileIfExist(fileFullPath string) error

*

  • @description: 删除文件
  • @param {string} fileFullPath
  • @return {*}

func GetFileExist

func GetFileExist(filepath string) (bool, error)

*

  • @description: 获取文件是否存在
  • @param {string} filepath
  • @return {*}

func GetPathInfo

func GetPathInfo(path string) (fs fs.FileInfo, exist bool, err error)

*

  • @description: 获取路径信息
  • @param {string} path
  • @return {*}

Types

This section is empty.

Jump to

Keyboard shortcuts

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