ini

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 5 Imported by: 0

README

GoDoc

go get github.com/goburrow/cfg/ini

Documentation

Overview

Package ini provides helpers for reading ini file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(r io.Reader, walkFn WalkFunc) error

Walk walks all items from r, calling walkFn for each item.

Types

type FileLoader

type FileLoader struct {
	Path     string
	Required bool
}

FileLoader loads ini from file. It flattens keys into the form: section.name = value.

func (*FileLoader) Load

func (l *FileLoader) Load(keys map[string]string) error

type WalkFunc

type WalkFunc func(section, name, value []byte) error

WalkFunc is the type of the function called for each key visited by Walk.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL