diff --git a/.gitignore b/.gitignore index 2b895f4..8f33b64 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ .idea .vscode *.log -gitmod.sh \ No newline at end of file +gomod.sh \ No newline at end of file diff --git a/LICENSE b/LICENSE index a0d0e5b..ff84bbf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 茂名聚合科技有限公司 +Copyright (c) 2018 李光春 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 07d5974..27b8474 100644 --- a/README.md +++ b/README.md @@ -2,24 +2,16 @@ Golang Md5 -📦 Golang 字符串组件 +📦 Golang Md5 [comment]: <> (go) [![godoc](https://pkg.go.dev/badge/go.dtapp.net/gomd5?status.svg)](https://pkg.go.dev/go.dtapp.net/gomd5) [![goproxy.cn](https://goproxy.cn/stats/go.dtapp.net/gomd5/badges/download-count.svg)](https://goproxy.cn/stats/go.dtapp.net/gomd5) [![goreportcard.com](https://goreportcard.com/badge/go.dtapp.net/gomd5)](https://goreportcard.com/report/go.dtapp.net/gomd5) -[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/go.dtapp.net/gomd5) +[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/go.dtapp.net%2Fgomd5) -#### 安装使用 +#### 安装 ```go go get -v -u go.dtapp.net/gomd5 ``` - -#### 导入 - -```go -import ( - "go.dtapp.net/gomd5" -) -``` \ No newline at end of file diff --git a/gomd5.go b/gomd5.go index 3bce4b5..2a9b9e8 100644 --- a/gomd5.go +++ b/gomd5.go @@ -8,8 +8,6 @@ import ( "strings" ) -const Version = "1.0.0" - func Php(str string) string { h := md5.New() io.WriteString(h, str) diff --git a/gomod.sh b/gomod.sh index c03f9f0..a0eaf4e 100644 --- a/gomod.sh +++ b/gomod.sh @@ -1,3 +1,3 @@ -go get -u && go mod tidy +go mod tidy go get -u all go mod vendor \ No newline at end of file diff --git a/version.go b/version.go new file mode 100644 index 0000000..ab495be --- /dev/null +++ b/version.go @@ -0,0 +1,3 @@ +package gomd5 + +const Version = "1.0.1"