Lint code
This commit is contained in:
parent
875fd778e1
commit
b7b41248cb
7 changed files with 8 additions and 15 deletions
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// Base64Encode
|
||||
func Base64Encode(s string) string {
|
||||
// Encode encodes a string to base64 removing the equals character
|
||||
func Encode(s string) string {
|
||||
str := base64.URLEncoding.EncodeToString([]byte(s))
|
||||
return strings.Replace(str, "=", "", -1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue