gf/g/g.go

46 lines
1.4 KiB
Go
Raw Normal View History

// Copyright 2017 gf Author(https://github.com/gogf/gf). 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,
// You can obtain one at https://github.com/gogf/gf.
2018-02-27 10:51:18 +08:00
package g
import "github.com/gogf/gf/g/container/gvar"
// Universal variable type, like generics.
type Var = gvar.Var
// Frequently-used map type alias.
type Map = map[string]interface{}
type MapAnyAny = map[interface{}]interface{}
type MapAnyStr = map[interface{}]string
type MapAnyInt = map[interface{}]int
type MapStrAny = map[string]interface{}
2018-12-16 22:22:07 +08:00
type MapStrStr = map[string]string
type MapStrInt = map[string]int
type MapIntAny = map[int]interface{}
2018-12-16 22:22:07 +08:00
type MapIntStr = map[int]string
type MapIntInt = map[int]int
2018-04-20 23:23:42 +08:00
// Frequently-used slice type alias.
2018-12-16 22:22:07 +08:00
type List = []Map
type ListAnyStr = []map[interface{}]string
type ListAnyInt = []map[interface{}]int
type ListStrAny = []map[string]interface{}
2018-12-16 22:22:07 +08:00
type ListStrStr = []map[string]string
type ListStrInt = []map[string]int
type ListIntAny = []map[int]interface{}
2018-12-16 22:22:07 +08:00
type ListIntStr = []map[int]string
type ListIntInt = []map[int]int
// Frequently-used slice type alias.
2018-12-16 22:22:07 +08:00
type Slice = []interface{}
type SliceAny = []interface{}
2018-12-16 22:22:07 +08:00
type SliceStr = []string
type SliceInt = []int
type Array = []interface{}
type ArrayAny = []interface{}
type ArrayStr = []string
type ArrayInt = []int