util

package
v0.0.0-...-cff8cb6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RpcTimeoutErr = errors.New("rpc client call timeout")
)

Functions

func Max

func Max[T int | int64 | uint64 | float64](a, b T) T

func Min

func Min[T int | int64 | uint64 | float64](a, b T) T

func PathIsExist

func PathIsExist(path string) bool

func RpcCallTimeout

func RpcCallTimeout(addr, serviceMethod string, args any, reply any, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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