Skip to content

Commit

Permalink
Optimized some import statements in the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
houseme committed Dec 5, 2024
1 parent 523912b commit e5086bc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion container/gmap/gmap_hash_any_any_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
package gmap

import (
"reflect"

"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/internal/deepcopy"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v2/internal/json"
"github.com/gogf/gf/v2/internal/rwmutex"
"github.com/gogf/gf/v2/util/gconv"
"reflect"
)

// AnyAnyMap wraps map type `map[interface{}]interface{}` and provides more map features.
Expand Down
3 changes: 2 additions & 1 deletion container/gmap/gmap_hash_int_any_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
package gmap

import (
"reflect"

"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/internal/deepcopy"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v2/internal/json"
"github.com/gogf/gf/v2/internal/rwmutex"
"github.com/gogf/gf/v2/util/gconv"
"reflect"
)

// IntAnyMap implements map[int]interface{} with RWMutex that has switch.
Expand Down
1 change: 1 addition & 0 deletions container/gtree/gtree_redblacktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"fmt"

"github.com/emirpasic/gods/trees/redblacktree"

"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/internal/json"
"github.com/gogf/gf/v2/internal/rwmutex"
Expand Down
3 changes: 2 additions & 1 deletion os/gcache/gcache_adapter_memory_lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
package gcache

import (
"sync"

"github.com/gogf/gf/v2/container/glist"
"github.com/gogf/gf/v2/container/gmap"
"sync"
)

// memoryLru holds LRU info.
Expand Down
1 change: 1 addition & 0 deletions os/gcache/gcache_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package gcache

import (
"context"

"github.com/gogf/gf/v2/util/gconv"
)

Expand Down
4 changes: 2 additions & 2 deletions os/gfsnotify/gfsnotify_watcher_loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package gfsnotify

import (
"context"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"

"github.com/gogf/gf/v2/container/glist"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/internal/intlog"
)

Expand Down

0 comments on commit e5086bc

Please sign in to comment.