mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
stdlize the code style
This commit is contained in:
parent
1adc5643aa
commit
620646e8e0
@ -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 <chenxin619315@gmail.com>
|
||||
// @Date 2025/12/03
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
@ -17,6 +11,12 @@ import (
|
||||
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
||||
)
|
||||
|
||||
// ---
|
||||
// Ip2Region service config
|
||||
//
|
||||
// @Author Lion <chenxin619315@gmail.com>
|
||||
// @Date 2025/12/03
|
||||
|
||||
const (
|
||||
NoCache = 0
|
||||
VIndexCache = 1
|
||||
|
||||
@ -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 <chenxin619315@gmail.com>
|
||||
// @Date 2025/12/03
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
@ -18,6 +12,12 @@ import (
|
||||
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
||||
)
|
||||
|
||||
// ---
|
||||
// ip2region searcher pool
|
||||
//
|
||||
// @Author Lion <chenxin619315@gmail.com>
|
||||
// @Date 2025/12/03
|
||||
|
||||
type SearcherPool struct {
|
||||
// config
|
||||
config *Config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user