mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 03:04:02 +03:00
Add correct configuration
This commit is contained in:
+1
-3
@@ -2,6 +2,4 @@ package mtglib
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrSecretEmpty = errors.New("secret is empty")
|
||||
)
|
||||
var ErrSecretEmpty = errors.New("secret is empty")
|
||||
|
||||
+3
-3
@@ -58,10 +58,10 @@ func (s *Secret) UnmarshalText(data []byte) error {
|
||||
}
|
||||
|
||||
func (s Secret) Base64() string {
|
||||
data := append([]byte{238}, s.Key...) // 238 = hex ee
|
||||
data = append(data, s.Host...)
|
||||
data := append([]byte{238}, s.Key...) // 238 = hex ee
|
||||
data = append(data, s.Host...)
|
||||
|
||||
return base64.RawURLEncoding.EncodeToString(data)
|
||||
return base64.RawURLEncoding.EncodeToString(data)
|
||||
}
|
||||
|
||||
func (s Secret) String() string {
|
||||
|
||||
Reference in New Issue
Block a user