goblock

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

goblock

介绍

使用golang开发时经常会用到的功能模块封装,先满足基本功能需求,然后慢慢完善。

使用说明
  1. daemon 后台守护模式运行
    1. main开头处导入包 import _ "gitee.com/duanhuiling/goblock/daemon"
    2. 运行程序时 添加参数 -d=true 即可
  2. log 日志输出模块
    按日期每天一个日志文件。
    1. 导入包 import "gitee.com/duanhuiling/goblock/log"
    2. 输出日志
       log.Info("日志信息 %s","goblock")
       log.Debug("日志信息 %s","goblock")
       log.Warning("日志信息 %s","goblock")
       log.Error("日志信息 %s","goblock")

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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