toolkit

package
v0.0.0-...-17003a6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToolKit

type ToolKit struct {
}

ToolKit is the set of tool plugins. exported methods and fields can be inject into vm.

func NewToolKit

func NewToolKit() *ToolKit

NewToolKit create a new ToolKit instant as a plugin to vm

func (*ToolKit) Hex

func (t *ToolKit) Hex(input string) string

Hex encode string as hex string

func (*ToolKit) RandInt

func (t *ToolKit) RandInt(min, max int) int

RandInt generate a random int in specific range

func (*ToolKit) RandStr

func (t *ToolKit) RandStr(l uint) string

RandStr generate a random string with specific length

func (*ToolKit) String

func (t *ToolKit) String(input interface{}, offsets ...int) string

String convert to string

Jump to

Keyboard shortcuts

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