chore: go fmt
This commit is contained in:
1 parent
39f95a8e0c
commit
e64ec077f6
5 files changed
+10
-11
No files matched your search
@@ -50,4 +50,3 @@ func ApplyFhttp(req *fhttp.Request, profile Profile) {
|
|||||||
req.Header.Set("Accept-Language", "en-US,en;q=0.9")
|
req.Header.Set("Accept-Language", "en-US,en;q=0.9")
|
||||||
req.Header.Set("DNT", "1")
|
req.Header.Set("DNT", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ type captchaInit struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type captchaInitData struct {
|
type captchaInitData struct {
|
||||||
ShowCaptchaType string `json:"show_captcha_type"`
|
ShowCaptchaType string `json:"show_captcha_type"`
|
||||||
CaptchaSettings []captchaInitSetting `json:"captcha_settings"`
|
CaptchaSettings []captchaInitSetting `json:"captcha_settings"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ func TestParseLinesStripsBlanksAndWhitespace(t *testing.T) {
|
|||||||
func TestFeminizeSurname(t *testing.T) {
|
func TestFeminizeSurname(t *testing.T) {
|
||||||
cases := map[string]string{
|
cases := map[string]string{
|
||||||
// -ов / -ев / -ёв / -ин / -ын -> +а
|
// -ов / -ев / -ёв / -ин / -ын -> +а
|
||||||
"Иванов": "Иванова",
|
"Иванов": "Иванова",
|
||||||
"Лебедев": "Лебедева",
|
"Лебедев": "Лебедева",
|
||||||
"Соловьёв": "Соловьёва",
|
"Соловьёв": "Соловьёва",
|
||||||
"Никитин": "Никитина",
|
"Никитин": "Никитина",
|
||||||
"Солженицын": "Солженицына",
|
"Солженицын": "Солженицына",
|
||||||
// -ий / -ый / -ой -> -ая
|
// -ий / -ый / -ой -> -ая
|
||||||
"Чайковский": "Чайковская",
|
"Чайковский": "Чайковская",
|
||||||
|
|||||||
+2
-2
@@ -62,8 +62,8 @@ var (
|
|||||||
connectedStreams atomic.Int32
|
connectedStreams atomic.Int32
|
||||||
globalAppCancel context.CancelFunc
|
globalAppCancel context.CancelFunc
|
||||||
handshakeSem = make(chan struct{}, 3)
|
handshakeSem = make(chan struct{}, 3)
|
||||||
isDebug bool
|
isDebug bool
|
||||||
manualCaptcha bool
|
manualCaptcha bool
|
||||||
)
|
)
|
||||||
|
|
||||||
var appDialer net.Dialer
|
var appDialer net.Dialer
|
||||||
|
|||||||
+3
-3
@@ -31,9 +31,9 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
wrapKeyLen = 32
|
wrapKeyLen = 32
|
||||||
wrapHeaderLen = 13 // DTLS record header
|
wrapHeaderLen = 13 // DTLS record header
|
||||||
wrapTagLen = 16 // Poly1305 tag
|
wrapTagLen = 16 // Poly1305 tag
|
||||||
wrapLenPrefix = 2 // uint16 BE real payload length
|
wrapLenPrefix = 2 // uint16 BE real payload length
|
||||||
wrapOverhead = wrapHeaderLen + wrapTagLen + wrapLenPrefix // 31
|
wrapOverhead = wrapHeaderLen + wrapTagLen + wrapLenPrefix // 31
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user