From 620646e8e0837183ab857cc3a2f6738b5dda9ce1 Mon Sep 17 00:00:00 2001 From: lionsoul2014 Date: Fri, 5 Dec 2025 18:51:23 +0800 Subject: [PATCH] stdlize the code style --- binding/golang/service/config.go | 12 ++++++------ binding/golang/service/searcher_pool.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/binding/golang/service/config.go b/binding/golang/service/config.go index efdea4b..fd97485 100644 --- a/binding/golang/service/config.go +++ b/binding/golang/service/config.go @@ -2,12 +2,6 @@ // Use of this source code is governed by a Apache2.0-style // license that can be found in the LICENSE file. -// --- -// Ip2Region service config -// -// @Author Lion -// @Date 2025/12/03 - package service import ( @@ -17,6 +11,12 @@ import ( "github.com/lionsoul2014/ip2region/binding/golang/xdb" ) +// --- +// Ip2Region service config +// +// @Author Lion +// @Date 2025/12/03 + const ( NoCache = 0 VIndexCache = 1 diff --git a/binding/golang/service/searcher_pool.go b/binding/golang/service/searcher_pool.go index 30982ea..44cca41 100644 --- a/binding/golang/service/searcher_pool.go +++ b/binding/golang/service/searcher_pool.go @@ -2,12 +2,6 @@ // Use of this source code is governed by a Apache2.0-style // license that can be found in the LICENSE file. -// --- -// ip2region searcher pool -// -// @Author Lion -// @Date 2025/12/03 - package service import ( @@ -18,6 +12,12 @@ import ( "github.com/lionsoul2014/ip2region/binding/golang/xdb" ) +// --- +// ip2region searcher pool +// +// @Author Lion +// @Date 2025/12/03 + type SearcherPool struct { // config config *Config