An open API service indexing awesome lists of open source software.

https://github.com/afeiship/go-strftime

Simple date format for golang.
https://github.com/afeiship/go-strftime

datetime format golang now strftime

Last synced: 9 days ago
JSON representation

Simple date format for golang.

Awesome Lists containing this project

README

          

# go-strftime
> Simple date format for golang.

## installation
```shell
go get -u github.com/afeiship/go-strftime
```

## usage
```shell
improt "github.com/afeiship/go-strftime"

fmt.Println(strftime.Format("datetime")) // 2021-08-01 10:10:10
fmt.Println(strftime.Format("date")) // 2021-08-01
fmt.Println(strftime.Format("time")) // 10:10:10
fmt.Println(strftime.Format("unix")) // 1627832610
```