ini

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	SectionsByName map[string]*Section
}

func NewIniContent

func NewIniContent() *Content

func (*Content) AddSection

func (content *Content) AddSection(section *Section)

type Section

type Section struct {
	Name   string
	Values []*SectionValue
}

func NewIniSection

func NewIniSection(name string) *Section

type SectionValue

type SectionValue struct {
	KeyName string
	Value   interface{}
}

func NewIniSectionValue

func NewIniSectionValue(key string, value interface{}) *SectionValue

type Service

type Service struct{}

func NewIniService

func NewIniService() *Service

func (*Service) ParseIniFileContents

func (s *Service) ParseIniFileContents(file *ini.File) *Content

func (*Service) ReadIniAtPath

func (s *Service) ReadIniAtPath(path string) (*ini.File, error)

Jump to

Keyboard shortcuts

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