cfg

package
v0.0.0-...-b9edb71 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Sections []Section
}

func Parse

func Parse(r io.Reader) (*File, error)

func (*File) WriteTo

func (f *File) WriteTo(w io.Writer) error

type KeyValue

type KeyValue struct {
	Key     string
	Value   string
	Comment string
}

type Section

type Section []KeyValue

func (Section) Get

func (s Section) Get(key string) (string, bool)

func (*Section) Set

func (s *Section) Set(key, val string)

Jump to

Keyboard shortcuts

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