full.ini 1.8 KB

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