Documentation ¶
Index ¶
- Constants
- Variables
- func CurrentTimeMillis() int64
- func MathUtils_Clamp(value, min, max float64) float64
- func MathUtils_ToRadians(angdeg float64) float64
- func Printf(format string, o ...interface{})
- type MD5Crack
- type MD5CrackOption
- type MD5CrackReturn
- type MD5CrackReturnType
- type Tree
- func (this *Tree) Add(parent, children *TreeNode)
- func (this *Tree) AllNode() map[string]*TreeNode
- func (this *Tree) GetTreeNode(n string) *TreeNode
- func (this *Tree) Insert(parent, children *TreeNode, index int) bool
- func (this *Tree) PathToRoot(node *TreeNode) []*TreeNode
- func (this *Tree) Remove(parent, node *TreeNode)
- func (this *Tree) RemoveByIndex(parent *TreeNode, index int) (*TreeNode, error)
- type TreeNode
- func (this *TreeNode) AddChildren(node *TreeNode)
- func (this *TreeNode) AddChildrens(nodes ...*TreeNode)
- func (this *TreeNode) Insert(index int, node *TreeNode) bool
- func (this *TreeNode) Parent() *TreeNode
- func (this *TreeNode) Remove(node *TreeNode) bool
- func (this *TreeNode) RemoveByIndex(index int) (*TreeNode, error)
- func (this *TreeNode) SetParent(p *TreeNode)
Constants ¶
View Source
const ( Number = "0123456789" LowerCase = "abcdefghijklmnopqrstuvwxyz" UpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Symbol = "~!@#$%^&*()_+-=/." )
View Source
const ( MD5CrackReturnType_Finish = iota MD5CrackReturnType_Error MD5CrackReturnType_Check )
Variables ¶
View Source
var MathUtils_NanoToSec float64 = 1 / 1000000000
View Source
var MathUtils_PI float64 = 3.1415927
View Source
var MathUtils_PI2 float64 = MathUtils_PI * 2
View Source
var MathUtils_SIN_BITS uint = 14 // 16KB. Adjust for accuracy.
View Source
var MathUtils_SIN_COUNT int = MathUtils_SIN_MASK + 1
View Source
var MathUtils_SIN_MASK int = ^(1 << MathUtils_SIN_BITS)
View Source
var MathUtils_degFull float64 = 360
View Source
var MathUtils_degRad float64 = MathUtils_degreesToRadians
View Source
var MathUtils_degToIndex float64 = float64(MathUtils_SIN_COUNT) / MathUtils_degFull
View Source
var MathUtils_degreesToRadians float64 = MathUtils_PI / 180
View Source
var MathUtils_radDeg float64 = MathUtils_radiansToDegrees
View Source
var MathUtils_radFull float64 = MathUtils_PI * 2
View Source
var MathUtils_radToIndex float64 = float64(MathUtils_SIN_COUNT) / MathUtils_radFull
View Source
var MathUtils_radiansToDegrees float64 = 180 / MathUtils_PI
Functions ¶
func CurrentTimeMillis ¶
func CurrentTimeMillis() int64
func MathUtils_Clamp ¶
func MathUtils_ToRadians ¶
Types ¶
type MD5Crack ¶
type MD5Crack struct {
// contains filtered or unexported fields
}
func NewMD5Crack ¶
func NewMD5Crack(o *MD5CrackOption) *MD5Crack
func (*MD5Crack) Start ¶
func (m *MD5Crack) Start(passwd, k string) chan MD5CrackReturn
type MD5CrackOption ¶
func NewMD5CrackOption ¶
func NewMD5CrackOption() *MD5CrackOption
type MD5CrackReturn ¶
type MD5CrackReturn struct { GoID int Status MD5CrackReturnType Recive string }
type MD5CrackReturnType ¶
type MD5CrackReturnType int
type Tree ¶
func NewTreeByRootNode ¶
func NewTreeByRootNodeAndTag ¶
func NewTreeByTag ¶
func (*Tree) GetTreeNode ¶
func (*Tree) PathToRoot ¶
type TreeNode ¶
type TreeNode struct { Data interface{} Children *Array // contains filtered or unexported fields }
func NewTreeData ¶
func NewTreeData() *TreeNode
func NewTreeDataByData ¶
func NewTreeDataByData(data interface{}) *TreeNode
func (*TreeNode) AddChildren ¶
func (*TreeNode) AddChildrens ¶
Click to show internal directories.
Click to hide internal directories.