Use Go1.11 module (#5743)
* Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
This commit is contained in:
parent
d578b71d61
commit
d77176912b
575 changed files with 63239 additions and 13963 deletions
32
vendor/github.com/issue9/identicon/.gitignore
generated
vendored
Normal file
32
vendor/github.com/issue9/identicon/.gitignore
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
|
||||
# Folders
|
||||
_obj
|
||||
_test
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
_cgo_gotypes.go
|
||||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
|
||||
*.exe
|
||||
*.test
|
||||
*.prof
|
||||
|
||||
#vim
|
||||
*.swp
|
||||
|
||||
#osx
|
||||
.DS_Store
|
||||
|
||||
testdata
|
10
vendor/github.com/issue9/identicon/.travis.yml
generated
vendored
Normal file
10
vendor/github.com/issue9/identicon/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
language: go
|
||||
go:
|
||||
- tip
|
||||
- 1.6
|
||||
- 1.5
|
||||
- 1.4
|
||||
- 1.3
|
||||
install:
|
||||
- go get github.com/issue9/assert
|
||||
- mkdir ./testdata
|
40
vendor/github.com/issue9/identicon/README.md
generated
vendored
Normal file
40
vendor/github.com/issue9/identicon/README.md
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
identicon [](https://travis-ci.org/issue9/identicon)
|
||||
======
|
||||
|
||||
根据用户的IP、邮箱名等任意数据为用户产生漂亮的随机头像。
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
```go
|
||||
// 根据用户访问的IP,为其生成一张头像
|
||||
img, _ := identicon.Make(128, color.NRGBA{},color.NRGBA{}, []byte("192.168.1.1"))
|
||||
fi, _ := os.Create("/tmp/u1.png")
|
||||
png.Encode(fi, img)
|
||||
fi.Close()
|
||||
|
||||
// 或者
|
||||
ii, _ := identicon.New(128, color.NRGBA{}, color.NRGBA{}, color.NRGBA{}, color.NRGBA{})
|
||||
img := ii.Make([]byte("192.168.1.1"))
|
||||
img = ii.Make([]byte("192.168.1.2"))
|
||||
```
|
||||
|
||||
### 安装
|
||||
|
||||
```shell
|
||||
go get github.com/issue9/identicon
|
||||
```
|
||||
|
||||
|
||||
### 文档
|
||||
|
||||
[](http://gowalker.org/github.com/issue9/identicon)
|
||||
[](https://godoc.org/github.com/issue9/identicon)
|
||||
|
||||
|
||||
### 版权
|
||||
|
||||
本项目采用[MIT](http://opensource.org/licenses/MIT)开源授权许可证,完整的授权说明可在[LICENSE](LICENSE)文件中找到。
|
Loading…
Add table
Add a link
Reference in a new issue