utils

package
v0.0.0-...-a5f33d3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckApp

func CheckApp(bin string) error

CheckApp check if other app was installed

func CheckFile

func CheckFile(path string) bool

CheckFile will check dir/file

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf format a message to a standard and exit the program

func GetInput

func GetInput(w io.Reader) string

GetInput will prompt a question and take the answer of the user

func GetSolcVersion

func GetSolcVersion() ([]byte, error)

GetSolcVersion will

func InstallSolidity

func InstallSolidity(ver string, w io.Writer) error

InstallSolidity will install solidity compiler

func Reset

func Reset(w io.Writer)

Reset was command for clear the terminal

func SelectInput

func SelectInput(data []string) string

SelectInput will prompt input with select option

func Spinner

func Spinner() *yacspin.Spinner

Spinner will initiate and return the spinner

func WriteJson

func WriteJson(filename string, jsonData interface{}) error

WriteJson will write json file

Types

type SolcTags

type SolcTags struct {
	Ref string `json:"ref"`
	Url string `json:"url"`
}

SolcTags struct struct for solc-js github api

func GetSolcList

func GetSolcList() []SolcTags

GetSolcList fetch version of solc-js from github

Jump to

Keyboard shortcuts

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