蓝眼网盘定制版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
472 B

package test
import (
"fmt"
"github.com/eyebluecn/tank/code/tool/util"
"strings"
"testing"
"time"
)
func TestHello(t *testing.T) {
split := strings.Split("good", "/")
fmt.Printf("%v", split)
var i int
for i = 1; i < 10; i++ {
fmt.Printf("i=%d\n", i)
}
}
func TestDayAgo(t *testing.T) {
dayAgo := time.Now()
dayAgo = dayAgo.AddDate(0, 0, -8)
thenDay := util.FirstSecondOfDay(dayAgo)
fmt.Printf("%s\n", util.ConvertTimeToDateTimeString(thenDay))
}