iniparse

package
v0.0.0-...-8ec759b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Types

type SpecialUnmarshalFn

type SpecialUnmarshalFn func(path string, lineno int, lines []string) (interface{}, error)

type Unmarshaller

type Unmarshaller struct {
	Path string // path to the unmarshalled file, used in error reporting
	// contains filtered or unexported fields
}

func NewUnmarshaller

func NewUnmarshaller() *Unmarshaller

func (*Unmarshaller) AddSpecialUnmarshaller

func (u *Unmarshaller) AddSpecialUnmarshaller(selector string, fn SpecialUnmarshalFn)

func (*Unmarshaller) RmSpecialUnmarshaller

func (u *Unmarshaller) RmSpecialUnmarshaller(selector string)

func (*Unmarshaller) Unmarshal

func (u *Unmarshaller) Unmarshal(data []byte, v interface{}) error

Jump to

Keyboard shortcuts

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