utils

package
v0.0.0-...-fc7dab2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConv_HexToInt = errors.New("utils.Conv_HexToInt: failed")
)

Functions

func Conv_FromLongToShortMethod

func Conv_FromLongToShortMethod(name string) string

func Conv_HexToInt

func Conv_HexToInt(hexStr string) uint64

func Conv_IntToHex

func Conv_IntToHex(int interface{}, width int) string

func Conv_InterfaceToError

func Conv_InterfaceToError(v interface{}) error

func FS_FileOrDirExists

func FS_FileOrDirExists(pathname string) error

func Grpc_ExtractServerShortName

func Grpc_ExtractServerShortName(fullName string) string

func Grpc_MethodToServiceName

func Grpc_MethodToServiceName(method string) string

func Grpc_MethodsFromServiceDesc

func Grpc_MethodsFromServiceDesc(svcDesc grpc.ServiceDesc) []string

func Net_MacAdrr

func Net_MacAdrr(ifName string) ([]byte, error)

func RandUint64

func RandUint64() uint64

func Rand_BytesArray

func Rand_BytesArray(len int) []byte

func ReadPassword

func ReadPassword(prompt string) (string, error)

func ReadTextInput

func ReadTextInput(prompt string) (string, error)

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