goyaml2: github.com/beego/goyaml2 Index | Files

package goyaml2

import "github.com/beego/goyaml2"

Index

Package Files

conv.go reader.go types.go writer.go

Constants

const (
    DEBUG        = true
    MAP_KEY_ONLY = iota
)
const (
    N_Map = iota
    N_List
    N_String
)

Variables

var (
    RE_INT, _   = regexp.Compile("^[0-9,]+$")
    RE_FLOAT, _ = regexp.Compile("^[0-9]+[.][0-9]+$")
    RE_DATE, _  = regexp.Compile("^[0-9]{4}-[0-9]{2}-[0-9]{2}$")
    RE_TIME, _  = regexp.Compile("^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$")
)

func Read Uses

func Read(r io.Reader) (interface{}, error)

func Write Uses

func Write(w io.Writer, v interface{}) error

type ListNode Uses

type ListNode []interface{}

func (*ListNode) Type Uses

func (l *ListNode) Type() int

type MapNode Uses

type MapNode map[string]interface{}

func (*MapNode) Type Uses

func (m *MapNode) Type() int

type Node Uses

type Node interface {
    Type() int
}

type StringNode Uses

type StringNode string

func (*StringNode) Type Uses

func (s *StringNode) Type() int

Package goyaml2 imports 8 packages (graph) and is imported by 295 packages. Updated 2019-02-05. Refresh now. Tools for package owners.