github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/goconfig/testdata/conf_test.ini (about)

     1  ; Google
     2  google = www.google.com
     3  search = http://%(google)s
     4  
     5  ; Here are Comments
     6  ; Second line
     7  [Demo]
     8  # This symbol can also make this line to be comments
     9  key1 = Let's us goconfig!!!
    10  key2 = rewrite this key of conf.ini
    11  key3 = this is based on key2:%(key2)s
    12  quote = "special case for quote
    13  `key:1` = This is the value of "key:1"
    14  `key:2=key:1` = this is based on "key:2=key:1" => %(key:1)s
    15  中国 = China
    16  chinese-var = hello %(中国)s!
    17  array_key = 1,2,3,4,5
    18  `key:2` = """this is based on "key:1" => `%(key:1)s`"""
    19  
    20  [What's this?]
    21  ; Not Enough Comments!!
    22  name = try one more value ^-^
    23  empty_value = 
    24  
    25  [url]
    26  google_fake = www.google.fake
    27  google_url = http://%(google_fake)s
    28  
    29  [parent]
    30  name = john
    31  relation = father
    32  sex = male
    33  age = 32
    34  money = 1.25
    35  
    36  [parent.child]
    37  age = 3
    38  married = true
    39  
    40  [parent.child.child]
    41  
    42  ; Auto increment by setting key to "-"
    43  [auto increment]
    44  - = hello
    45  - = go
    46  - = config
    47  
    48  [new section]
    49  key1 = conf.ini does not have this key
    50