treegen

package
v0.0.0-...-08e1f15 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2011 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CHUNKSIZE int = 8192
View Source
const PREFIX string = "treegen"

Variables

This section is empty.

Functions

func Fab

func Fab(parent string, g Generated) os.Error

func TestTree

func TestTree(t *testing.T, g Generated) string

Types

type Bytes

type Bytes struct {
	Seed   int64
	Length int64
}

type Dir

type Dir struct {
	Name     string
	Contents []Generated
}

type File

type File struct {
	Name     string
	Contents []Generated
}

type Generated

type Generated interface{}

type TreeGen

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

func New

func New() *TreeGen

func (*TreeGen) B

func (treeGen *TreeGen) B(seed int64, length int64) *Bytes

func (*TreeGen) D

func (treeGen *TreeGen) D(name string, contents ...Generated) *Dir

func (*TreeGen) F

func (treeGen *TreeGen) F(name string, contents ...Generated) *File

Jump to

Keyboard shortcuts

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