✏️ make lint happy

This commit is contained in:
fumiama
2021-12-19 16:04:14 +08:00
parent 4ad7ff7971
commit 5ff9069ff2
13 changed files with 26 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
package plugin_sleep_manage
package sleepmanage
import (
"os"
@@ -12,11 +12,10 @@ import (
func init() {
go func() {
defer func() {
//recover() //可以打印panic的错误信息
if err := recover(); err != nil { //产生了panic异常
if err := recover(); err != nil {
log.Println(err)
}
}() //别忘了(), 调用此匿名函数
}()
process.SleepAbout1sTo2s()
_ = os.MkdirAll(dbpath, 0755)
model.Initialize(dbfile)

View File

@@ -1,3 +1,4 @@
// Package model 睡眠管理数据库
package model
import (

View File

@@ -1,4 +1,5 @@
package plugin_sleep_manage
// Package sleepmanage 睡眠管理
package sleepmanage
import (
"fmt"