Skip to content

Commit e5086bc

Browse files
committed
Optimized some import statements in the code.
1 parent 523912b commit e5086bc

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

container/gmap/gmap_hash_any_any_map.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
package gmap
88

99
import (
10+
"reflect"
11+
1012
"github.com/gogf/gf/v2/container/gvar"
1113
"github.com/gogf/gf/v2/internal/deepcopy"
1214
"github.com/gogf/gf/v2/internal/empty"
1315
"github.com/gogf/gf/v2/internal/json"
1416
"github.com/gogf/gf/v2/internal/rwmutex"
1517
"github.com/gogf/gf/v2/util/gconv"
16-
"reflect"
1718
)
1819

1920
// AnyAnyMap wraps map type `map[interface{}]interface{}` and provides more map features.

container/gmap/gmap_hash_int_any_map.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
package gmap
99

1010
import (
11+
"reflect"
12+
1113
"github.com/gogf/gf/v2/container/gvar"
1214
"github.com/gogf/gf/v2/internal/deepcopy"
1315
"github.com/gogf/gf/v2/internal/empty"
1416
"github.com/gogf/gf/v2/internal/json"
1517
"github.com/gogf/gf/v2/internal/rwmutex"
1618
"github.com/gogf/gf/v2/util/gconv"
17-
"reflect"
1819
)
1920

2021
// IntAnyMap implements map[int]interface{} with RWMutex that has switch.

container/gtree/gtree_redblacktree.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"fmt"
1111

1212
"github.com/emirpasic/gods/trees/redblacktree"
13+
1314
"github.com/gogf/gf/v2/container/gvar"
1415
"github.com/gogf/gf/v2/internal/json"
1516
"github.com/gogf/gf/v2/internal/rwmutex"

os/gcache/gcache_adapter_memory_lru.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
package gcache
88

99
import (
10+
"sync"
11+
1012
"github.com/gogf/gf/v2/container/glist"
1113
"github.com/gogf/gf/v2/container/gmap"
12-
"sync"
1314
)
1415

1516
// memoryLru holds LRU info.

os/gcache/gcache_cache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package gcache
88

99
import (
1010
"context"
11+
1112
"github.com/gogf/gf/v2/util/gconv"
1213
)
1314

os/gfsnotify/gfsnotify_watcher_loop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ package gfsnotify
88

99
import (
1010
"context"
11-
"github.com/gogf/gf/v2/errors/gcode"
12-
"github.com/gogf/gf/v2/errors/gerror"
1311

1412
"github.com/gogf/gf/v2/container/glist"
13+
"github.com/gogf/gf/v2/errors/gcode"
14+
"github.com/gogf/gf/v2/errors/gerror"
1515
"github.com/gogf/gf/v2/internal/intlog"
1616
)
1717

0 commit comments

Comments
 (0)