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

52 lines
1.5 KiB

<h1>
<a href="https://www.dtapp.net/">Golang Library</a>
</h1>
3 years ago
3 years ago
📦 Golang 扩展包
3 years ago
3 years ago
[comment]: <> (go)
2 years ago
[![godoc](https://pkg.go.dev/badge/github.com/dtapps/go-library?status.svg)](https://pkg.go.dev/github.com/dtapps/go-library)
[![goproxy.cn](https://goproxy.cn/stats/github.com/dtapps/go-library/badges/download-count.svg)](https://goproxy.cn/stats/github.com/dtapps/go-library)
[![goreportcard.com](https://goreportcard.com/badge/github.com/dtapps/go-library)](https://goreportcard.com/report/github.com/dtapps/go-library)
2 years ago
[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgo-library)
2 years ago
2 years ago
#### 安装使用
3 years ago
2 years ago
```go
2 years ago
go get -v -u github.com/dtapps/go-library
2 years ago
import (
2 years ago
"github.com/dtapps/go-library"
2 years ago
)
```
#### 用法示例
> 默认时区为 Local即服务器所在时区
##### 当前时间
```go
import (
2 years ago
"github.com/dtapps/go-library/utils/gotime"
2 years ago
)
gotime.Current().Now()
gotime.Current().Format()
gotime.Current().Timestamp()
gotime.Current().TimestampWithMillisecond()
3 years ago
```
2 years ago
## JetBrains 开源证书支持
2 years ago
`go-library` 基于 JetBrains 公司旗下的 GoLand 集成开发环境中进行开发。
2 years ago
1 year ago
<a href="https://www.jetbrains.com/?from=go-library" target="_blank">
<img src="https://user-images.githubusercontent.com/16093106/208018478-27f4911e-9543-4799-a595-8fe4a91b182b.png" width="250" align="middle"/>
2 years ago
</a>
## 🔑 License
2 years ago
[MIT](https://github.com/dtapps/go-library/blob/master/LICENSE)
2 years ago
Copyright (c) 2018 茂名聚合科技有限公司