github.com/gogf/gf/v2@v2.7.4/frame/gins/gins_config.go (about)

     1  // Copyright GoFrame Author(https://goframe.org). 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/gogf/gf.
     6  
     7  package gins
     8  
     9  import (
    10  	"github.com/gogf/gf/v2/os/gcfg"
    11  )
    12  
    13  // Config returns an instance of View with default settings.
    14  // The parameter `name` is the name for the instance.
    15  func Config(name ...string) *gcfg.Config {
    16  	return gcfg.Instance(name...)
    17  }