1; Package name 2NAME = ini 3; Package version 4VERSION = v1 5; Package import path 6IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s 7 8# Information about package author 9# Bio can be written in multiple lines. 10[author] 11NAME = Unknwon 12E-MAIL = u@gogs.io 13GITHUB = https://github.com/%(NAME)s 14BIO = """Gopher. 15Coding addict. 16Good man. 17""" # Succeeding comment 18 19[package] 20CLONE_URL = https://%(IMPORT_PATH)s 21 22[package.sub] 23UNUSED_KEY = should be deleted 24 25[features] 26-: Support read/write comments of keys and sections 27-: Support auto-increment of key names 28-: Support load multiple files to overwrite key values 29 30[types] 31STRING = str 32BOOL = true 33BOOL_FALSE = false 34FLOAT64 = 1.25 35INT = 10 36TIME = 2015-01-01T20:17:05Z 37DURATION = 2h45m 38UINT = 3 39HEX_NUMBER = 0x3000 40 41[array] 42STRINGS = en, zh, de 43FLOAT64S = 1.1, 2.2, 3.3 44INTS = 1, 2, 3 45UINTS = 1, 2, 3 46TIMES = 2015-01-01T20:17:05Z,2015-01-01T20:17:05Z,2015-01-01T20:17:05Z 47BOOLS = true, false, false 48 49[note] 50empty_lines = next line is empty\ 51 52; Comment before the section 53[comments] ; This is a comment for the section too 54; Comment before key 55key = "value" 56key2 = "value2" ; This is a comment for key2 57key3 = "one", "two", "three" 58 59[string escapes] 60key1 = value1, value2, value3 61key2 = value1\, value2 62key3 = val\ue1, value2 63key4 = value1\\, value\\\\2 64key5 = value1\,, value2 65key6 = aaa bbb\ and\ space ccc 66 67[advance] 68value with quotes = "some value" 69value quote2 again = 'some value' 70includes comment sign = `my#password` 71includes comment sign2 = `my;password` 72true = 2+3=5 73"1+1=2" = true 74"""6+1=7""" = true 75"""`5+5`""" = 10 76`"6+6"` = 12 77`7-2=4` = false 78ADDRESS = `404 road, 79NotFound, State, 50000` 80two_lines = how about \ 81 continuation lines? 82lots_of_lines = 1 \ 83 2 \ 84 3 \ 85 4 \ 86