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.
Go to file
李光春 d269b45582
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
- 增加[验证字符串是否为时间]方法
10 months ago
.drone.yml - update 11 months ago
.gitignore add bson 1 year ago
LICENSE - update 11 months ago
README.md - 增加[验证字符串是否为时间]方法 10 months ago
compare.go 增加方法: 1 year ago
differ.go init 1 year ago
errors.go init 1 year ago
go.mod - update 11 months ago
gotime.go - update 11 months ago
gotime_test.go - 增加[验证字符串是否为时间]方法 10 months ago
location.go init 1 year ago
mongo.go add bson 1 year ago
start_end.go init 1 year ago
today.go init 1 year ago
tomorrow.go - update 11 months ago
verification.go - 增加[验证字符串是否为时间]方法 10 months ago
verification_test.go - 增加[验证字符串是否为时间]方法 10 months ago
version.go - 增加[验证字符串是否为时间]方法 10 months ago
version_test.go - 增加[验证字符串是否为时间]方法 10 months ago
yesterday.go init 1 year ago

README.md

Golang Time

📦 Golang 时间

godoc goproxy.cn goreportcard.com deps.dev

安装

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))
}