Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhijian committed Jul 16, 2019
1 parent aff8726 commit 4a1d15f
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,36 @@
* Url_encode => url_encode
* Url_decode => url_decode
* Http_build_query => http_build_query
* Uniqid => uniqid
* Uniqid => uniqid

# 使用方法
1. Go module

`require github.com/zhijianwu/php latest`

上面内容加入go.mod文件内

`go mod vendor`
2. Go package

`go get -v github.com/zhijianwu/php`

3. Example

```go
package main

import (
"fmt"
"github.com/zhijianwu/php"
)

func main() {
fmt.Println(php.Time())
fmt.Println(php.Date("2006~~~01#02",php.Time()))
}

//console
1563257169
2019~~~07#16
```

0 comments on commit 4a1d15f

Please sign in to comment.