MCPcopy
hub / github.com/go-ini/ini

github.com/go-ini/ini @v1.67.3 sqlite

repository ↗ · DeepWiki ↗ · release v1.67.3 ↗
300 symbols 1,341 edges 18 files 163 documented · 54%
README

INI

GitHub Workflow Status GoDoc

Package ini provides INI file read and write functionality in Go.

Features

  • Load from multiple data sources(file, []byte, io.Reader and io.ReadCloser) with overwrites.
  • Read with recursion values.
  • Read with parent-child sections.
  • Read with auto-increment key names.
  • Read with multiple-line values.
  • Read with tons of helper methods.
  • Read and convert values to Go types.
  • Read and WRITE comments of sections and keys.
  • Manipulate sections, keys and comments with ease.
  • Keep sections and keys in order as you parse and save.

Installation

The minimum requirement of Go is 1.13.

$ go get gopkg.in/ini.v1@latest

[!NOTE] If you previously used github.com/go-ini/ini as the import path in your project, without updating all of your code, you can use the following command to replace the import path in your go.mod: zsh go mod edit -replace github.com/go-ini/ini=gopkg.in/ini.v1@latest

Getting Help

License

This project is under Apache v2 License. See the LICENSE file for the full license text.

Extension points exported contracts — how you extend this code

DebugFunc (FuncType)
DebugFunc is the type of function called to log parse events.
ini.go
NameMapper (FuncType)
NameMapper represents a ini tag name mapper.
struct.go
ValueMapper (FuncType)
ValueMapper represents a mapping function for values, e.g. os.ExpandEnv
key.go
StructReflector (Interface)
StructReflector is the interface implemented by struct types that can extract themselves into INI objects.
struct.go
Parser (FuncType)
(no doc)
key.go

Core symbols most depended-on inside this repo

Key
called by 247
section.go
Section
called by 225
file.go
String
called by 193
key.go
LoadSources
called by 79
ini.go
Error
called by 53
error.go
Load
called by 46
ini.go
NewKey
called by 37
section.go
WriteTo
called by 32
file.go

Shape

Method 142
Function 110
Struct 41
FuncType 4
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

key.go83 symbols
struct_test.go39 symbols
struct.go28 symbols
file.go24 symbols
section.go18 symbols
file_test.go17 symbols
parser.go14 symbols
key_test.go14 symbols
bench_test.go14 symbols
section_test.go12 symbols
ini_test.go10 symbols
data_source.go9 symbols

Dependencies from manifests, versioned

For agents

$ claude mcp add ini \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact