utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonExit

func CommonExit(err error)

func ExecuteCommand

func ExecuteCommand(name string, subName string, args ...string) (string, error)

func ExecutedDir added in v0.0.3

func ExecutedDir() (string, error)

返回当前执行文件真实目录

func Exist added in v0.0.2

func Exist(path string) bool

判断路径的文件或文件夹是否存在

func GetJson added in v0.0.2

func GetJson[T any](url string, loadingText string) T

func Open

func Open(url string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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