github.com/zhongdalu/gf@v1.0.0/g/g.go (about) 1 // Copyright 2017 gf Author(https://github.com/zhongdalu/gf). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/zhongdalu/gf. 6 7 package g 8 9 import "github.com/zhongdalu/gf/g/container/gvar" 10 11 // Universal variable type, like generics. 12 type Var = gvar.Var 13 14 // Frequently-used map type alias. 15 type Map = map[string]interface{} 16 type MapAnyAny = map[interface{}]interface{} 17 type MapAnyStr = map[interface{}]string 18 type MapAnyInt = map[interface{}]int 19 type MapStrAny = map[string]interface{} 20 type MapStrStr = map[string]string 21 type MapStrInt = map[string]int 22 type MapIntAny = map[int]interface{} 23 type MapIntStr = map[int]string 24 type MapIntInt = map[int]int 25 26 // Frequently-used slice type alias. 27 type List = []Map 28 type ListAnyStr = []map[interface{}]string 29 type ListAnyInt = []map[interface{}]int 30 type ListStrAny = []map[string]interface{} 31 type ListStrStr = []map[string]string 32 type ListStrInt = []map[string]int 33 type ListIntAny = []map[int]interface{} 34 type ListIntStr = []map[int]string 35 type ListIntInt = []map[int]int 36 37 // Frequently-used slice type alias. 38 type Slice = []interface{} 39 type SliceAny = []interface{} 40 type SliceStr = []string 41 type SliceInt = []int 42 43 // Array is alias of Slice. 44 type Array = []interface{} 45 type ArrayAny = []interface{} 46 type ArrayStr = []string 47 type ArrayInt = []int