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
|
// Use of this source code is governed by a Apache2.0-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// ---
|
|
||||||
// Ip2Region service config
|
|
||||||
//
|
|
||||||
// @Author Lion <chenxin619315@gmail.com>
|
|
||||||
// @Date 2025/12/03
|
|
||||||
|
|
||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
@ -17,6 +11,12 @@ import (
|
||||||
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ---
|
||||||
|
// Ip2Region service config
|
||||||
|
//
|
||||||
|
// @Author Lion <chenxin619315@gmail.com>
|
||||||
|
// @Date 2025/12/03
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NoCache = 0
|
NoCache = 0
|
||||||
VIndexCache = 1
|
VIndexCache = 1
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,6 @@
|
||||||
// Use of this source code is governed by a Apache2.0-style
|
// Use of this source code is governed by a Apache2.0-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// ---
|
|
||||||
// ip2region searcher pool
|
|
||||||
//
|
|
||||||
// @Author Lion <chenxin619315@gmail.com>
|
|
||||||
// @Date 2025/12/03
|
|
||||||
|
|
||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
@ -18,6 +12,12 @@ import (
|
||||||
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ---
|
||||||
|
// ip2region searcher pool
|
||||||
|
//
|
||||||
|
// @Author Lion <chenxin619315@gmail.com>
|
||||||
|
// @Date 2025/12/03
|
||||||
|
|
||||||
type SearcherPool struct {
|
type SearcherPool struct {
|
||||||
// config
|
// config
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue