toml: github.com/naoina/toml/ast Index | Files

package ast

import "github.com/naoina/toml/ast"

Index

Package Files

ast.go

type Array Uses

type Array struct {
    Position Position
    Value    []Value
    Data     []rune
}

func (*Array) End Uses

func (a *Array) End() int

func (*Array) Pos Uses

func (a *Array) Pos() int

func (*Array) Source Uses

func (a *Array) Source() string

type Boolean Uses

type Boolean struct {
    Position Position
    Value    string
    Data     []rune
}

func (*Boolean) Boolean Uses

func (b *Boolean) Boolean() (bool, error)

func (*Boolean) End Uses

func (b *Boolean) End() int

func (*Boolean) Pos Uses

func (b *Boolean) Pos() int

func (*Boolean) Source Uses

func (b *Boolean) Source() string

type Datetime Uses

type Datetime struct {
    Position Position
    Value    string
    Data     []rune
}

func (*Datetime) End Uses

func (d *Datetime) End() int

func (*Datetime) Pos Uses

func (d *Datetime) Pos() int

func (*Datetime) Source Uses

func (d *Datetime) Source() string

func (*Datetime) Time Uses

func (d *Datetime) Time() (time.Time, error)

type Float Uses

type Float struct {
    Position Position
    Value    string
    Data     []rune
}

func (*Float) End Uses

func (f *Float) End() int

func (*Float) Float Uses

func (f *Float) Float() (float64, error)

func (*Float) Pos Uses

func (f *Float) Pos() int

func (*Float) Source Uses

func (f *Float) Source() string

type Integer Uses

type Integer struct {
    Position Position
    Value    string
    Data     []rune
}

func (*Integer) End Uses

func (i *Integer) End() int

func (*Integer) Int Uses

func (i *Integer) Int() (int64, error)

func (*Integer) Pos Uses

func (i *Integer) Pos() int

func (*Integer) Source Uses

func (i *Integer) Source() string

type KeyValue Uses

type KeyValue struct {
    Key   string
    Value Value
    Line  int
}

type Position Uses

type Position struct {
    Begin int
    End   int
}

type String Uses

type String struct {
    Position Position
    Value    string
    Data     []rune
}

func (*String) End Uses

func (s *String) End() int

func (*String) Pos Uses

func (s *String) Pos() int

func (*String) Source Uses

func (s *String) Source() string

type Table Uses

type Table struct {
    Position Position
    Line     int
    Name     string
    Fields   map[string]interface{}
    Type     TableType
    Data     []rune
}

func (*Table) End Uses

func (t *Table) End() int

func (*Table) Pos Uses

func (t *Table) Pos() int

func (*Table) Source Uses

func (t *Table) Source() string

type TableType Uses

type TableType uint8
const (
    TableTypeNormal TableType = iota
    TableTypeArray
)

func (TableType) String Uses

func (t TableType) String() string

type Value Uses

type Value interface {
    Pos() int
    End() int
    Source() string
}

Package ast imports 3 packages (graph) and is imported by 36 packages. Updated 2017-09-15. Refresh now. Tools for package owners.