stdlize the code style

This commit is contained in:
lionsoul2014 2025-12-05 18:51:23 +08:00
parent 1adc5643aa
commit 620646e8e0
2 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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