toml

package
v0.0.0-...-0461163 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Field   *Field   ` @@`
	Section *Section `| @@`
}

type Field

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

type Section

type Section struct {
	Name   string   `"[" @(Ident { "." Ident }) "]"`
	Fields []*Field `{ @@ }`
}

type TOML

type TOML struct {
	Pos lexer.Position

	Entries []*Entry `{ @@ }`
}

type Value

type Value struct {
	String   *string  ` @String`
	DateTime *string  `| @DateTime`
	Date     *string  `| @Date`
	Time     *string  `| @Time`
	Bool     *bool    `| {@"true" | "false"}`
	Integer  *int64   `| @Int`
	Float    *float64 `| @Float`
	List     []*Value `| "[" [ @@ { "," @@ } ] "]"`
}

Jump to

Keyboard shortcuts

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