helpers

package
v0.0.0-...-ab0235b Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValueFromSingleSectionGroup

func GetValueFromSingleSectionGroup(c *ConfigIni, sectionName string, key string) string

Types

type ConfigIni

type ConfigIni struct {
	Groups map[string][]Section
}

Multipe sections with same name will be grouped (such as [ndbd]) and maintained as an array in that group

func NewConfig

func NewConfig() *ConfigIni

func ParseFile

func ParseFile(file string) (*ConfigIni, error)

func ParseString

func ParseString(inString string) (*ConfigIni, error)

type Section

type Section map[string]string

config variable name, config value pair

Jump to

Keyboard shortcuts

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