util

package
v0.95.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 1 Imported by: 12

Documentation

Overview

Package util contains some special useful functions that are provided by compiler and VM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals(a, b interface{}) bool

Equals compares a with b and will return true when a and b are equal. It's implemented as an EQUAL VM opcode, so the rules of comparison are those of EQUAL.

func FromAddress

func FromAddress(address string) interop.Hash160

FromAddress is an utility function that converts a Neo address to its hash (160 bit BE value in a 20 byte slice). It can only be used for strings known at compilation time, because the conversion is actually being done by the compiler.

func Remove added in v0.76.0

func Remove(slice interface{}, i int)

Remove removes element with index i from slice. This is done in place and slice must have type other than `[]byte`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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