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 Abort ¶
func Abort()
Abort terminates current execution, unlike exception throwing with panic() it can't be recovered from.
func AbortMsg ¶
func AbortMsg(msg string)
AbortMsg terminates current execution with the specified message. Unlike exception throwing with panic() it can't be recovered from.
func Assert ¶
func Assert(ok bool)
Assert terminates current execution if the condition specified is false. Unlike exception throwing with panic() it can't be recovered from.
func AssertMsg ¶
AssertMsg terminates current execution with the specified message if the condition specified is false. Unlike exception throwing with panic() it can't be recovered from.
Types ¶
This section is empty.