From d56505004e9782784962318c8d9a3cc905b9e0f0 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 2 Jun 2026 03:58:58 +0200 Subject: [PATCH] style: gofmt -s (doc-comment list separator, struct field alignment) --- database/model/model.go | 1 + web/service/sub_uri_base_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/database/model/model.go b/database/model/model.go index 5066a7c7..4d70a44d 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -307,6 +307,7 @@ func StripVlessInboundEncryption(settings string) (string, bool) { // inbound with "users must have empty method" when a client carries // one — strip stale entries left over from a switch off a legacy // cipher. +// // Returns the rewritten settings string and true when anything changed. func HealShadowsocksClientMethods(settings string) (string, bool) { if settings == "" { diff --git a/web/service/sub_uri_base_test.go b/web/service/sub_uri_base_test.go index 087cda19..68c37640 100644 --- a/web/service/sub_uri_base_test.go +++ b/web/service/sub_uri_base_test.go @@ -26,11 +26,11 @@ func TestBuildSubURIBase(t *testing.T) { } cases := []struct { - name string - subDomain, port string - cert, key string - host string - want string + name string + subDomain, port string + cert, key string + host string + want string }{ {"no domain, plain, non-standard port", "", "2096", "", "", "panel.example.com", "http://panel.example.com:2096"}, {"host carries a port — stripped, sub port applied", "", "2096", "", "", "panel.example.com:9999", "http://panel.example.com:2096"},