gins_config.go 504 B

1234567891011121314151617
  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. package gins
  7. import (
  8. "github.com/gogf/gf/os/gcfg"
  9. )
  10. // Config returns an instance of View with default settings.
  11. // The parameter <name> is the name for the instance.
  12. func Config(name ...string) *gcfg.Config {
  13. return gcfg.Instance(name...)
  14. }