utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitByLength

func SplitByLength(str string, length int) []string

SplitByLength returns split string by length.

func ValidAssetId

func ValidAssetId(assetId string) (assetIdBytes *types.ByteData, err error)

ValidAssetId This function validate an assetId.

func ValidBlockHash

func ValidBlockHash(blockHash string) (blockHashBytes *types.ByteData, err error)

ValidBlockHash This function validate a blockHash.

func ValidNetworkTypes

func ValidNetworkTypes(networks []types.NetworkType, target types.NetworkType) bool

ValidNetworkTypes This function checks if the target network is included.

Types

This section is empty.

Jump to

Keyboard shortcuts

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