2018-02-27 10:51:18 +08:00
|
|
|
|
// Copyright 2017 gf Author(https://gitee.com/johng/gf). All Rights Reserved.
|
|
|
|
|
|
//
|
|
|
|
|
|
// 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://gitee.com/johng/gf.
|
2018-04-24 23:09:59 +08:00
|
|
|
|
// 常用数据类型以及对象封装
|
2018-02-27 10:51:18 +08:00
|
|
|
|
|
2018-02-26 17:05:16 +08:00
|
|
|
|
package g
|
|
|
|
|
|
|
2018-10-09 13:33:00 +08:00
|
|
|
|
import "gitee.com/johng/gf/g/container/gvar"
|
|
|
|
|
|
|
|
|
|
|
|
// 框架动态变量,可以用该类型替代interface{}类型
|
|
|
|
|
|
type Var = gvar.Var
|
|
|
|
|
|
|
2018-05-25 18:20:40 +08:00
|
|
|
|
// 常用map数据结构(使用别名)
|
2018-09-13 18:40:04 +08:00
|
|
|
|
type Map = map[string]interface{}
|
2018-04-20 23:23:42 +08:00
|
|
|
|
|
2018-05-25 18:20:40 +08:00
|
|
|
|
// 常用list数据结构(使用别名)
|
2018-09-13 18:40:04 +08:00
|
|
|
|
type List = []Map
|
|
|
|
|
|
|
|
|
|
|
|
// 常用slice数据结构(使用别名)
|
|
|
|
|
|
type Slice = []interface{}
|
|
|
|
|
|
type Array = Slice
|