go fmt
This commit is contained in:
parent
331192ccbe
commit
2f4cc04db2
7 changed files with 30 additions and 29 deletions
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
func GenerateToken(pkey []byte, id int, a... []byte) ([]byte, error) {
|
||||
func GenerateToken(pkey []byte, id int, a ...[]byte) ([]byte, error) {
|
||||
h := sha512.New()
|
||||
|
||||
h.Write([]byte(fmt.Sprintf("%x", pkey)))
|
||||
|
|
|
|||
Reference in a new issue