Watch
1
0
Fork
You've already forked go-ini
0
Code Issues 1 Pull requests Projects Releases Packages Wiki Activity Pipelines
No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-24 19:24:44 +02:00
example formated example 2026-07-19 11:59:36 +02:00
decode.go correctly indented loop: 2026-07-24 19:24:44 +02:00
decode_test.go formated code and tests 2026-07-19 11:58:54 +02:00
go.mod use new url-shortener url 2026-07-10 22:29:27 +02:00
LICENSE added GPLv3 license 2026-07-10 22:50:17 +02:00
README.md updated README 2026-07-19 11:56:26 +02:00

ini

A simple ini/conf decoder which unmarshals bytes into a struct.

It can decode values into various types:

  • int, int8, int16, int32, int64 + unsigned variants
  • float32, float64
  • bool
  • string

Comments can be used with ';' or '#'.

Example

Check out the example at ./example/example.go.

You can run the example using:

go run ./example/example.go

Some issues

  • Does not trim leading spaces.
  • Comments can not be on the same line after a category or key/value pair.