nanocms_compiler

package
v0.0.0-...-eaafa95 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 6 Imported by: 0

README

Nanostate Compiler

Current: just a primite YAML loader.

Not so distant future: YAML declaration with call of functions, using embedded Python dialect.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NstCompiler

type NstCompiler struct {
	// contains filtered or unexported fields
}

func NewNstCompiler

func NewNstCompiler() *NstCompiler

func (*NstCompiler) Dump

func (nstc *NstCompiler) Dump()

func (*NstCompiler) LoadBytes

func (nstc *NstCompiler) LoadBytes(src []byte) error

LoadString loads a nanostate from an array of bytes of a YAML source

func (*NstCompiler) LoadFile

func (nstc *NstCompiler) LoadFile(nstpath string) error

LoadFile loads a nanostate from the YAML file

func (*NstCompiler) LoadString

func (nstc *NstCompiler) LoadString(src string) error

LoadString loads a nanostate from a text YAML source)

func (*NstCompiler) Tree

func (nstc *NstCompiler) Tree() map[string]interface{}

Tree returns

Jump to

Keyboard shortcuts

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