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