riskmisc

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

install

go get -u github.com/Runninginsilence1/riskmisc

增加新工具函数流程

  1. 创建新的go文件(如果有需要)
  2. 在readme中增加新函数的示例;
  3. 如果你有需要, 添加一个新的标签()

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log *myLog

我觉得不用弄成接口

Functions

func DecodeJson added in v1.0.1

func DecodeJson(input interface{}, output interface{}) error

DecodeJson 在将 map转换成普通结构体时, map中的键值对的匹配根据结构体定义的json来寻找, 而不是字段名.

func GenGinEngine added in v1.0.0

func GenGinEngine(relativePath string, data any) (r *gin.Engine, err error)

func GitConfigTest added in v1.0.0

func GitConfigTest() string

func InitLog added in v1.0.0

func InitLog(debug bool)

func IsSoftwareInstalled

func IsSoftwareInstalled(software string) bool

IsSoftwareInstalled validates whether a linux software or a windows software is installed. In Windows, it will check the Windows Registry.

func TryJwt

func TryJwt() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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