Documentation ¶
Overview ¶
Package cli defines constants, configurations, and utilities that are used across the Flow CLI.
Index ¶
- Constants
- func ContainsString(s []string, e string) bool
- func ConvertSigAndHashAlgo(signatureAlgorithm string, hashingAlgorithm string) (crypto.SignatureAlgorithm, crypto.HashAlgorithm, error)
- func CreateTabWriter(b *bytes.Buffer) *tabwriter.Writer
- func EnvFromNetwork(network flow.ChainID) templates.Environment
- func Exit(code int, msg string)
- func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
- func ParseAddress(value string) (flow.Address, bool)
- func RandomSeed(n int) ([]byte, error)
- func RemoveFromStringArray(s []string, el string) []string
Constants ¶
View Source
const (
EnvPrefix = "FLOW"
)
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString returns true if the slice contains the given string.
func ConvertSigAndHashAlgo ¶
func ConvertSigAndHashAlgo( signatureAlgorithm string, hashingAlgorithm string, ) (crypto.SignatureAlgorithm, crypto.HashAlgorithm, error)
ConvertSigAndHashAlgo parses and validates a signature and hash algorithm pair.
func EnvFromNetwork ¶
func EnvFromNetwork(network flow.ChainID) templates.Environment
func GetAddressNetwork ¶
func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
GetAddressNetwork returns the chain ID for an address.
func ParseAddress ¶
func RandomSeed ¶
func RemoveFromStringArray ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.