utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BINARY_BASE      = 2
	OCTAL_BASE       = 8
	DECIMAL_BASE     = 10
	HEXADECIMAL_BASE = 16

	VERBOSE = false

	STRING  = "string"
	INTEGER = "integer"

	ASCII       = "ascii"
	BINARY      = "binary"
	OCTAL       = "octal"
	DECIMAL     = "decimal"
	HEXADECIMAL = "hexadecimal"
)

Variables

Functions

func CheckError

func CheckError(err error, formatSrc, formatDst string)

CheckError (err error, formatSrc, formatDst string)

func CheckType

func CheckType(v interface{}, f string)

CheckType (v interface{}, f string)

func Invoke

func Invoke(fn interface{}, args ...interface{}) interface{}

Invoke (fn interface{}, args ...interface{}) interface{}

func IsAscii

func IsAscii(s string) bool

IsAscii (f string) bool

func IsDecimal

func IsDecimal(s string) bool

IsDecimal (f string) bool

func IsLiteral added in v1.2.3

func IsLiteral(s string) bool

IsLiteral (s string) bool

func IsNumeric

func IsNumeric(s string) bool

IsNumeric (f string) bool

func Parse added in v1.2.3

func Parse(s string, base int) (int64, error)

Parse (s string, base int) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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