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.
gotime/README.md

882 B

Golang

📦 Golang 时间

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/gotime@v1.0.8

使用

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