full.ini 1.8 KB

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