participle

package
v0.0.0-...-1d296a1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(source io.Reader) error

Types

type Entry

type Entry struct {
	Properties []*Property `@@*`
	Sections   []*Section  `@@*`
}

type Property

type Property struct {
	Key   string `@Ident "="`
	Value *Value `@@`
}

type Section

type Section struct {
	Identifier string      `"[" @Ident "]"`
	Properties []*Property `@@*`
}

type Value

type Value struct {
	String *string  `  @String`
	Number *float64 `| @Float`
}

Jump to

Keyboard shortcuts

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