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.
李光春
28daa77389
|
2 years ago | |
---|---|---|
.. | ||
.drone.yml | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
compare.go | 2 years ago | |
differ.go | 2 years ago | |
errors.go | 2 years ago | |
gotime.go | 2 years ago | |
location.go | 2 years ago | |
mongo.go | 2 years ago | |
start_end.go | 2 years ago | |
today.go | 2 years ago | |
tomorrow.go | 2 years ago | |
verification.go | 2 years ago | |
version.go | 2 years ago | |
yesterday.go | 2 years ago |
README.md
Golang Time
📦 Golang 时间
安装
go get -v -u go.dtapp.net/gotime
使用
package main
import (
"go.dtapp.net/gotime"
"testing"
)
// TestVerification 验证字符串是否为时间
func TestVerification(t *testing.T) {
t.Log(gotime.Verification("2022-02-05 00:00:00", gotime.DateTimeFormat))
}