2021-01-17 21:46:25 +08:00
|
|
|
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
2018-02-27 10:51:18 +08:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
|
|
// If a copy of the MIT was not distributed with this file,
|
2019-02-02 16:18:25 +08:00
|
|
|
// You can obtain one at https://github.com/gogf/gf.
|
2018-02-27 10:51:18 +08:00
|
|
|
|
2018-02-26 17:05:16 +08:00
|
|
|
package g
|
|
|
|
|
2021-08-11 13:20:00 +08:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"github.com/gogf/gf/container/gvar"
|
2021-10-06 20:11:54 +08:00
|
|
|
"github.com/gogf/gf/util/gmeta"
|
2021-08-11 13:20:00 +08:00
|
|
|
)
|
2018-10-09 13:33:00 +08:00
|
|
|
|
2021-08-11 13:20:00 +08:00
|
|
|
type (
|
2021-10-06 20:11:54 +08:00
|
|
|
Var = gvar.Var // Var is a universal variable interface, like generics.
|
|
|
|
Ctx = context.Context // Ctx is alias of frequently-used type context.Context.
|
|
|
|
Meta = gmeta.Meta // Meta is alias of frequently-used type gmeta.Meta.
|
2021-08-11 13:20:00 +08:00
|
|
|
)
|
2018-10-09 13:33:00 +08:00
|
|
|
|
2021-02-08 17:57:21 +08:00
|
|
|
type (
|
2021-08-11 13:20:00 +08:00
|
|
|
Map = map[string]interface{} // Map is alias of frequently-used map type map[string]interface{}.
|
|
|
|
MapAnyAny = map[interface{}]interface{} // MapAnyAny is alias of frequently-used map type map[interface{}]interface{}.
|
|
|
|
MapAnyStr = map[interface{}]string // MapAnyStr is alias of frequently-used map type map[interface{}]string.
|
|
|
|
MapAnyInt = map[interface{}]int // MapAnyInt is alias of frequently-used map type map[interface{}]int.
|
|
|
|
MapStrAny = map[string]interface{} // MapStrAny is alias of frequently-used map type map[string]interface{}.
|
|
|
|
MapStrStr = map[string]string // MapStrStr is alias of frequently-used map type map[string]string.
|
|
|
|
MapStrInt = map[string]int // MapStrInt is alias of frequently-used map type map[string]int.
|
|
|
|
MapIntAny = map[int]interface{} // MapIntAny is alias of frequently-used map type map[int]interface{}.
|
|
|
|
MapIntStr = map[int]string // MapIntStr is alias of frequently-used map type map[int]string.
|
|
|
|
MapIntInt = map[int]int // MapIntInt is alias of frequently-used map type map[int]int.
|
|
|
|
MapAnyBool = map[interface{}]bool // MapAnyBool is alias of frequently-used map type map[interface{}]bool.
|
|
|
|
MapStrBool = map[string]bool // MapStrBool is alias of frequently-used map type map[string]bool.
|
|
|
|
MapIntBool = map[int]bool // MapIntBool is alias of frequently-used map type map[int]bool.
|
2021-02-08 17:57:21 +08:00
|
|
|
)
|
2018-04-20 23:23:42 +08:00
|
|
|
|
2021-02-08 17:57:21 +08:00
|
|
|
type (
|
2021-08-11 13:20:00 +08:00
|
|
|
List = []Map // List is alias of frequently-used slice type []Map.
|
|
|
|
ListAnyAny = []MapAnyAny // ListAnyAny is alias of frequently-used slice type []MapAnyAny.
|
|
|
|
ListAnyStr = []MapAnyStr // ListAnyStr is alias of frequently-used slice type []MapAnyStr.
|
|
|
|
ListAnyInt = []MapAnyInt // ListAnyInt is alias of frequently-used slice type []MapAnyInt.
|
|
|
|
ListStrAny = []MapStrAny // ListStrAny is alias of frequently-used slice type []MapStrAny.
|
|
|
|
ListStrStr = []MapStrStr // ListStrStr is alias of frequently-used slice type []MapStrStr.
|
|
|
|
ListStrInt = []MapStrInt // ListStrInt is alias of frequently-used slice type []MapStrInt.
|
|
|
|
ListIntAny = []MapIntAny // ListIntAny is alias of frequently-used slice type []MapIntAny.
|
|
|
|
ListIntStr = []MapIntStr // ListIntStr is alias of frequently-used slice type []MapIntStr.
|
|
|
|
ListIntInt = []MapIntInt // ListIntInt is alias of frequently-used slice type []MapIntInt.
|
|
|
|
ListAnyBool = []MapAnyBool // ListAnyBool is alias of frequently-used slice type []MapAnyBool.
|
|
|
|
ListStrBool = []MapStrBool // ListStrBool is alias of frequently-used slice type []MapStrBool.
|
|
|
|
ListIntBool = []MapIntBool // ListIntBool is alias of frequently-used slice type []MapIntBool.
|
2021-02-08 17:57:21 +08:00
|
|
|
)
|
2018-12-16 22:22:07 +08:00
|
|
|
|
2021-02-08 17:57:21 +08:00
|
|
|
type (
|
2021-08-11 13:20:00 +08:00
|
|
|
Slice = []interface{} // Slice is alias of frequently-used slice type []interface{}.
|
|
|
|
SliceAny = []interface{} // SliceAny is alias of frequently-used slice type []interface{}.
|
|
|
|
SliceStr = []string // SliceStr is alias of frequently-used slice type []string.
|
|
|
|
SliceInt = []int // SliceInt is alias of frequently-used slice type []int.
|
2021-02-08 17:57:21 +08:00
|
|
|
)
|
2019-06-21 22:23:07 +08:00
|
|
|
|
2021-02-08 17:57:21 +08:00
|
|
|
type (
|
2021-08-11 13:20:00 +08:00
|
|
|
Array = []interface{} // Array is alias of frequently-used slice type []interface{}.
|
|
|
|
ArrayAny = []interface{} // ArrayAny is alias of frequently-used slice type []interface{}.
|
|
|
|
ArrayStr = []string // ArrayStr is alias of frequently-used slice type []string.
|
|
|
|
ArrayInt = []int // ArrayInt is alias of frequently-used slice type []int.
|
2021-02-08 17:57:21 +08:00
|
|
|
)
|