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 47 48[note] 49empty_lines = next line is empty\ 50 51; Comment before the section 52[comments] ; This is a comment for the section too 53; Comment before key 54key = "value" 55key2 = "value2" ; This is a comment for key2 56key3 = "one", "two", "three" 57 58[string escapes] 59key1 = value1, value2, value3 60key2 = value1\, value2 61key3 = val\ue1, value2 62key4 = value1\\, value\\\\2 63key5 = value1\,, value2 64key6 = aaa bbb\ and\ space ccc 65 66[advance] 67value with quotes = "some value" 68value quote2 again = 'some value' 69includes comment sign = `my#password` 70includes comment sign2 = `my;password` 71true = 2+3=5 72"1+1=2" = true 73"""6+1=7""" = true 74"""`5+5`""" = 10 75`"6+6"` = 12 76`7-2=4` = false 77ADDRESS = `404 road, 78NotFound, State, 50000` 79two_lines = how about \ 80 continuation lines? 81lots_of_lines = 1 \ 82 2 \ 83 3 \ 84 4 \ 85