An open API service indexing awesome lists of open source software.

https://github.com/nonzzz/ini

A standard golang ini parser
https://github.com/nonzzz/ini

ast go ini-parser

Last synced: 11 months ago
JSON representation

A standard golang ini parser

Awesome Lists containing this project

README

          

# Ini





A simple standard ini parser with golang.

## Install

```bash

$ go get github.com/nonzzz/ini

```

## Features

- Read by file.
- Read by string.
- Marshal to Json or Map.
- Friendly Selector

## Usage

```go

i := ini.New()

// Load File
i.LoadFile("your ini file")

// Parse

txt :=`

[s]

a = 3

[s1]

b = 4

`

ini.Parse(txt)

```

## Document

- [selector](./docs/selector.md)

## Acknowledgements

Thanks to [JetBrains](https://www.jetbrains.com/) for allocating free open-source licences for IDEs.


GoLand logo.

## Author

Kanno

## LICENSE

[MIT](LICENSE)