Finish all the i18n things of code.

This commit is contained in:
zicla
2019-05-06 02:18:08 +08:00
parent e37b248c8c
commit 54c5905a58
38 changed files with 504 additions and 720 deletions

View File

@ -2,6 +2,7 @@ package test
import (
"fmt"
"github.com/eyebluecn/tank/code/core"
"github.com/eyebluecn/tank/code/tool/util"
"github.com/robfig/cron"
"log"
@ -17,7 +18,6 @@ func TestHello(t *testing.T) {
}
//测试cron表达式
func TestCron(t *testing.T) {
i := 0
@ -34,12 +34,10 @@ func TestCron(t *testing.T) {
c.Start()
//当前线程阻塞 20s
time.Sleep(3 * time.Second)
}
//测试 时间
func TestDayAgo(t *testing.T) {
dayAgo := time.Now()
@ -50,10 +48,3 @@ func TestDayAgo(t *testing.T) {
fmt.Printf("%s\n", util.ConvertTimeToDateTimeString(thenDay))
}
//测试 打包
func TestZip(t *testing.T) {
util.Zip("/Users/fusu/d/group/eyeblue/tank/tmp/matter/admin/root/morning", "/Users/fusu/d/group/eyeblue/tank/tmp/log/morning.zip")
}