tools

package
v0.0.0-...-55c0a6c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENC_serialised = byte(1)
	ENC_string     = byte(2)
	ENC_float      = byte(3)
	ENC_int        = byte(4)
	ENC_byteslice  = byte(5)
	ENC_bool       = byte(6)

	OSSP = string(os.PathSeparator)
)

Variables

View Source
var Base64Encode = base64.RawURLEncoding

Functions

func Decode

func Decode(b []byte, v interface{})

func DumpConfig

func DumpConfig(path string, t interface{}) error

func EncodeToByte

func EncodeToByte(t interface{}) []byte

func GetDirSeperator

func GetDirSeperator() string

func GetRandomAsciiString

func GetRandomAsciiString(size int) string

func GetRandomBytes

func GetRandomBytes(size int) []byte

func GetSerial

func GetSerial() *big.Int

func LoadFromJsonFile

func LoadFromJsonFile(path string, t interface{}) error

func StartWorker

func StartWorker(f func(a ...interface{}), a ...interface{}) error

func TestStringInput

func TestStringInput(str string) string

func ToBytes

func ToBytes(t interface{}) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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