expoutils

package
v1.0.0-beta-1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommand

func CheckCommand(command string) error

CheckCommand is a function for checking command/programs wether exist or not

func CheckPath

func CheckPath(target string) error

CheckPath is a function for checking a file or directory wether exist or not

func Clear

func Clear()

Clear is a function to clear terminal screen

func Contains

func Contains(x string, data []string) bool

Contains will check if x was in []string

func Fatalf

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

Fatalf will format message and exit the app

func GetSolcjsList

func GetSolcjsList() []string

GetSolcjsList will fetch available solc-js version

func HttpGetJson

func HttpGetJson(url string, result interface{}) error

HttpGetJson will do http request `get` with json result

func HttpGetRaw

func HttpGetRaw(url string) ([]byte, error)

HttpGetRaw will do http request `get` with raw result

func MaptoStruct

func MaptoStruct(data interface{}, result interface{}) error

MaptoStruct is a function to convert map into struct

func ReadFile

func ReadFile(target string) ([]byte, error)

ReadFile is a function for read a file

func ReadJson

func ReadJson(target string, result interface{}) error

ReadJson is a function for read a json file

func WriteFile

func WriteFile(target string, data []byte) error

WriteFile is a function for writing custom file

func WriteJson

func WriteJson(target string, data interface{}) error

WriteJson is a function for writing json file

Types

This section is empty.

Jump to

Keyboard shortcuts

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