dotenv, parsing fix email, moved dump tracnsport to new file gz, removed unwanted var jwt, added in HS256 sign/parse
ptr, ref and deref funcs response, use fmt.Fprint(f) validate, few new funcs
This commit is contained in:
2
gz/gz.go
2
gz/gz.go
@@ -8,7 +8,6 @@ package gz
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"io"
|
||||
)
|
||||
|
||||
func Zip(data []byte) ([]byte, error) {
|
||||
@@ -31,7 +30,6 @@ func Zip(data []byte) ([]byte, error) {
|
||||
|
||||
func UnZip(data []byte) ([]byte, error) {
|
||||
b := bytes.NewBuffer(data)
|
||||
var r io.Reader
|
||||
r, err := gzip.NewReader(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user