represent

package
v0.0.0-...-b1ce3bc Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PRESENT_PKG = "golang.org/x/tools/present"
View Source
const REPRESENT_PKG = "github.com/cmars/represent"

Variables

View Source
var CR = []byte{0x0c}

CR represents a carriage-return.

View Source
var CRLF = []byte{0x0c, 0x0a}

CRLF represents a carriage-return/line-feed sequence.

View Source
var LF = []byte{0x0a}

LF represents a line-feed, the only sensible choice.

Functions

func EolConvert

func EolConvert(r io.Reader, eol []byte) io.Reader

Convert wraps a reader to convert all end-of-line terminators to the desired output.

Types

type Represent

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

Represent provides functions to publish a directory tree of files in the Present format.

func NewRepresent

func NewRepresent(srcDir, publishDir string) (*Represent, error)

NewRepresent builds a new, initialized Represent struct for processing the given base directory. If srcDir is the empty string, base directory is assumed to be the current working directory.

func (*Represent) Publish

func (r *Represent) Publish() (err error)

Publish sets up all referenced static assets, and compiles all Present format files in the source directory tree to the publish directory.

Jump to

Keyboard shortcuts

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