Skip to content

playnb/util

Repository files navigation

#Util工具箱

###log 初始化默认的日志

	log.InitPanic("../tmp")
	log.Init(log.DefaultLogger("../tmp", "run"))
	defer log.Flush()

###BuffData 使用默认的缓冲池

util.DefaultPool()

获取缓冲数据对象(长度800)

data:=util.DefaultPool().Get(800)

归还缓冲数据对象

data.Release()

Releases

No releases published

Packages

No packages published

Languages