gins

package
v0.0.0-...-3631402 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

单例对象管理. 框架内置了一些核心对象获取方法,并且可以通过Set和Get方法实现IoC以及对内置核心对象的自定义替换

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() *gcfg.Config

核心对象:Config 配置文件目录查找依次为:启动参数cfgpath、当前程序运行目录

func Get

func Get(k string) interface{}

获取单例对象

func Set

func Set(k string, v interface{})

设置单例对象

func View

func View() *gview.View

核心对象:View

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL