boot

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 8 Imported by: 0

README

boot基础框架

Jetbrains官方授权

goland

Documentation

Index

Constants

View Source
const (
	Success                     = 1
	DefaultPersonasCacheTimeout = 60
	DefaultPersonasMax          = 512
	DefaultPersonasRedisPrefix  = "boot:pns:"
)
View Source
const (
	Ok = "OK"
)

Variables

View Source
var (
	Decr = -1

	SetValue = struct{}{}

	AcquireArgs = func() []interface{} {
		return argsPool.Get().([]interface{})
	}

	ReleaseArgs = func(args []interface{}) {
		if args == nil {
			return
		}

		args = args[:0]
		argsPool.Put(args)
	}
)

Functions

func Bytes2Int64

func Bytes2Int64(data []byte) (num int64)

func HashOrNumber

func HashOrNumber(key interface{}) (value uint32)

func Json

func Json(filePath string, out interface{}) (err error)

func Yaml

func Yaml(filePath string, out interface{}) (err error)

Types

type CanHash

type CanHash interface {
	HashCode() (hashValue uint32)
}

type DoubleNode

type DoubleNode struct {
	Value interface{}
	Left  unsafe.Pointer
	Right unsafe.Pointer
}

func NewDoubleNode

func NewDoubleNode(value interface{}, left unsafe.Pointer, right unsafe.Pointer) (node *DoubleNode)

type Node

type Node struct {
	Value interface{}
}

func NewNode

func NewNode(value interface{}) *Node

type SingleNode

type SingleNode struct {
	Value interface{}
	Right unsafe.Pointer
}

func NewSingleNode

func NewSingleNode(value interface{}, right unsafe.Pointer) (node *SingleNode)

Jump to

Keyboard shortcuts

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