utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToFloat

func BoolToFloat(b bool) float64

BoolToFloat converts bool to float64

func BoolToInt

func BoolToInt(b bool) int64

BoolToInt converts bool to int64

func CreateAstProgFile added in v1.0.1

func CreateAstProgFile(data string) (antlr.ParseTree, error)

CreateAstProgFile creates AST from string data based on progFile entrypoint

func FloatToBool

func FloatToBool(f float64) bool

FloatToBool converts float64 to bool

func FloatToInt

func FloatToInt(f float64) int64

FloatToInt converts float64 to int64

func IntToBool

func IntToBool(i int64) bool

IntToBool converts int64 to bool

func IntToFloat

func IntToFloat(i int64) float64

IntToFloat covverts int64 to float64

func StripHexPrefix

func StripHexPrefix(s string) string

StripHexPrefix strips 0x/0X prefixes on hex string

Types

This section is empty.

Jump to

Keyboard shortcuts

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