utils

package
v0.0.0-...-9a83fbb Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElemTo

func ElemTo(v interface{}) reflect.Type

获取struct或Ptr对应的类型

func ReadAllLines

func ReadAllLines(filePath string) ([]string, error)

func RunCmd

func RunCmd(name string, arg ...string) error

func Type

func Type[T interface{}]() reflect.Type

func Uncompress

func Uncompress(tarPath string, dest string) error

func ViperBind

func ViperBind(key string, dest interface{})

func ViperBindKey

func ViperBindKey(v *viper.Viper, key string, dest interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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