chore: go fmt

This commit is contained in:
samosvalishe
2026-05-18 19:40:18 +03:00
parent 39f95a8e0c
commit e64ec077f6
5 changed files with 10 additions and 11 deletions
@@ -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("DNT", "1")
}
+1 -1
View File
@@ -71,7 +71,7 @@ type captchaInit struct {
}
type captchaInitData struct {
ShowCaptchaType string `json:"show_captcha_type"`
ShowCaptchaType string `json:"show_captcha_type"`
CaptchaSettings []captchaInitSetting `json:"captcha_settings"`
}
+4 -4
View File
@@ -23,10 +23,10 @@ func TestParseLinesStripsBlanksAndWhitespace(t *testing.T) {
func TestFeminizeSurname(t *testing.T) {
cases := map[string]string{
// -ов / -ев / -ёв / -ин / -ын -> +а
"Иванов": "Иванова",
"Лебедев": "Лебедева",
"Соловьёв": "Соловьёва",
"Никитин": "Никитина",
"Иванов": "Иванова",
"Лебедев": "Лебедева",
"Соловьёв": "Соловьёва",
"Никитин": "Никитина",
"Солженицын": "Солженицына",
// -ий / -ый / -ой -> -ая
"Чайковский": "Чайковская",
+2 -2
View File
@@ -62,8 +62,8 @@ var (
connectedStreams atomic.Int32
globalAppCancel context.CancelFunc
handshakeSem = make(chan struct{}, 3)
isDebug bool
manualCaptcha bool
isDebug bool
manualCaptcha bool
)
var appDialer net.Dialer
+3 -3
View File
@@ -31,9 +31,9 @@ import (
const (
wrapKeyLen = 32
wrapHeaderLen = 13 // DTLS record header
wrapTagLen = 16 // Poly1305 tag
wrapLenPrefix = 2 // uint16 BE real payload length
wrapHeaderLen = 13 // DTLS record header
wrapTagLen = 16 // Poly1305 tag
wrapLenPrefix = 2 // uint16 BE real payload length
wrapOverhead = wrapHeaderLen + wrapTagLen + wrapLenPrefix // 31
)