2018-05-03 13:35:08 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"gitee.com/johng/gf/g"
|
|
|
|
)
|
|
|
|
|
2018-11-25 22:18:36 +08:00
|
|
|
// 使用GetVar获取动态变量
|
2018-05-03 13:35:08 +08:00
|
|
|
func main() {
|
2018-10-27 16:05:36 +08:00
|
|
|
fmt.Println(g.Config().GetVar("memcache.0").String())
|
2018-05-03 13:35:08 +08:00
|
|
|
}
|
|
|
|
|