common

package
v0.0.3-1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearExitDefer

func ClearExitDefer()

func FailExit

func FailExit(reason any, code ...int)

FailExit 接收错误信息或错误类型,如果接收错误信息则退出,如果接收到nil则直接返回,不退出(这么改之后就能少写几个panic了)

func GetPluginInfo

func GetPluginInfo(pluginFile string) (*convention.PluginInfo, error)

func SetCurrentCmd

func SetCurrentCmd(sub string)

func SetExitDefer

func SetExitDefer(f func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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