hotime/example/main.go

16 lines
312 B
Go
Raw Normal View History

2017-08-17 02:37:00 +00:00
package main
import (
2022-03-12 17:12:29 +00:00
"code.hoteas.com/golang/hotime"
2017-09-05 03:09:13 +00:00
"fmt"
2018-04-08 16:02:13 +00:00
"time"
2017-08-17 02:37:00 +00:00
)
func main() {
date, _ := time.Parse("2006-01-02 15:04", time.Now().Format("2006-01-02")+" 14:00")
fmt.Println(date, date.Unix())
2021-10-26 16:27:24 +00:00
//fmt.Println("0123456"[1:7])
2021-06-04 02:04:37 +00:00
appIns := hotime.Init("config/config.json")
2022-03-12 17:12:29 +00:00
appIns.Run(hotime.Router{})
2017-08-17 02:37:00 +00:00
}