mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
13 lines
208 B
Go
13 lines
208 B
Go
package main
|
||
|
||
import (
|
||
"fmt"
|
||
|
||
"github.com/gogf/gf/frame/g"
|
||
)
|
||
|
||
// 使用g.Config方法获取配置管理对象,并指定默认的配置文件名称
|
||
func main() {
|
||
fmt.Println(g.Config().Get("viewpath"))
|
||
}
|