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