utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbiDecodeString

func AbiDecodeString(bz []byte) (string, error)

func AbiEncodeString

func AbiEncodeString(str string) ([]byte, error)

func BeautifyJson

func BeautifyJson(bzJson []byte) ([]byte, error)

func GetGroupsOfUser

func GetGroupsOfUser(username string) ([]string, error)

func GetOperationUserInfo

func GetOperationUserInfo() (operationUserInfo *types.OperationUserInfo, err error)

func HasBinaryName

func HasBinaryName(binaryName string) bool

func IsDarwin

func IsDarwin() bool

func IsLinux

func IsLinux() bool

func IsSuperUser

func IsSuperUser(username string) (isSuperUser bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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