lib

package module
v0.0.0-...-c752fc4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(assertion bool)

Assert that 'assertion' is true. If not exit program.

func ConvAddrStrToAddressType

func ConvAddrStrToAddressType(addrStr string) (addr addr.AddressType, err error)

func Exists

func Exists(name string) bool

Exists returns true if file exists. It will return true for directories also.

func Fopen

func Fopen(fn string, mode string) (file *os.File, err error)

Fopen opens the file name with mode having the same meaing as the C/C++ stdio.h Fopen.

func IsValidAddress

func IsValidAddress(addrStr string) bool

IsValidAddress returns true if the addresss is a validate looking address.

func RunSmartContract

func RunSmartContract()

RunSmartContract -- Implemented in Assignment 6

func SVarI

func SVarI(v interface{}) string

SVarI marshals and indents a data structure into JSON.

Types

type SignatureType

type SignatureType string

Jump to

Keyboard shortcuts

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