Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromByteArray ¶ added in v1.2.1
Helper function that converts byte slice to type T.
func ToBool ¶
func ToBool(i interface{}) bool
Convert any variable to bool.
In most cases it returns true if i > 0.
func ToByteArray ¶ added in v1.2.1
Helper function that converts type T to byte slice.
Types ¶
type Word ¶ added in v1.1.0
func ParsePrompt ¶ added in v1.1.1
This functions splits provided string into words and determines its basic types.
type WordType ¶ added in v1.4.0
type WordType int
const ( // Not word. W_NONE WordType = iota // Number in scientific notation. W_NUM_SCI // Number in decimal representation. W_NUM_DEC // Number in hexadecimal representation. W_NUM_HEX // Number in binary representation. W_NUM_BIN // Some variable, constant or function. W_UNIT // Operator. W_OP // Flow control (brackets). W_CTL // Detected function call. W_FUNC // String. W_STR )
Word types
Click to show internal directories.
Click to hide internal directories.