github.com/gogf/gf@v1.16.9/.example/os/gcfg/basic/gcfg2.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/gogf/gf/frame/g" 7 ) 8 9 // 使用默认的config.toml配置文件读取配置 10 func main() { 11 c := g.Config() 12 fmt.Println(c.GetArray("memcache")) 13 }