github.com/gogf/gf@v1.16.9/.example/os/gcfg/basic/config.json (about)

     1  {
     2      "viewpath"   : "/home/www/templates/",
     3      "database"   : {
     4          "default" : [
     5              {
     6                  "host"     : "127.0.0.1",
     7                  "port"     : "3306",
     8                  "user"     : "root",
     9                  "pass"     : "123456",
    10                  "name"     : "test",
    11                  "type"     : "mysql",
    12                  "role"     : "master",
    13                  "charset"  : "utf8",
    14                  "priority" : "1"
    15              },
    16              {
    17                  "host"     : "127.0.0.1",
    18                  "port"     : "3306",
    19                  "user"     : "root",
    20                  "pass"     : "123456",
    21                  "name"     : "test",
    22                  "type"     : "mysql",
    23                  "role"     : "master",
    24                  "charset"  : "utf8",
    25                  "priority" : "1"
    26              }
    27          ]
    28      },
    29      "redis"   : {
    30          "disk"  : "127.0.0.1:6379,0",
    31          "cache" : "127.0.0.1:6379,1"
    32      }
    33  }