package
Version:
v0.0.0-...-3631402
Opens a new window with list of versions in this module.
Published: Aug 6, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
单例对象管理.
框架内置了一些核心对象获取方法,并且可以通过Set和Get方法实现IoC以及对内置核心对象的自定义替换
核心对象:Config
配置文件目录查找依次为:启动参数cfgpath、当前程序运行目录
func Get(k string) interface{}
获取单例对象
func Set(k string, v interface{})
设置单例对象
Source Files
¶
Click to show internal directories.
Click to hide internal directories.