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.
李光春
d1f38fbada
|
2 years ago | |
---|---|---|
.github/workflows | 2 years ago | |
service | 2 years ago | |
utils | 2 years ago | |
vendor | 2 years ago | |
.gitignore | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
library.go | 2 years ago | |
library_test.go | 2 years ago |
README.md
Golang Library
📦 Golang 扩展包
安装使用
go get -v -u github.com/dtapps/go-library
import (
"github.com/dtapps/go-library"
)
用法示例
默认时区为 Local,即服务器所在时区
当前时间
import (
"github.com/dtapps/go-library/utils/gotime"
)
gotime.Current().Now()
gotime.Current().Format()
gotime.Current().Timestamp()
gotime.Current().TimestampWithMillisecond()