utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncCall

func AsyncCall(ctx context.Context, param consts.AsyncCallParam) (ret consts.AsyncCallResultList, err error)

AsyncCall 异步调用函数

func CamelToUnderline

func CamelToUnderline(s string) string

CamelToUnderline 驼峰转下划线

func ConvertSliceToInterfaceSlice

func ConvertSliceToInterfaceSlice(slice interface{}) []interface{}

ConvertSliceToInterfaceSlice 使用 reflect 将任何类型的切片转换为 []interface{}

func ParseRPMName added in v0.0.2

func ParseRPMName(rpmName string) (consts.PackageInfo, error)

func ParseToJSON

func ParseToJSON(data string, key string) (string, error)

ParseToJSON 解析字符串为 JSON 格式

func RandomString

func RandomString(length int) string

RandomString 生成随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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