embedded

package
v0.0.0-...-65af2ff Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2014 License: AGPL-3.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package embedded defines embedded data types that are shared between the go.rice package and generated code. This package is seperated from go.rice to make go.rice's documentation cleaner.

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedBoxes = make(map[string]*EmbeddedBox)

EmbeddedBoxes is a public register of embedded boxes

Functions

func RegisterEmbeddedBox

func RegisterEmbeddedBox(name string, box *EmbeddedBox)

RegisterEmbeddedBox registers an EmbeddedBox

Types

type EmbeddedBox

type EmbeddedBox struct {
	Name  string                   // box name
	Time  time.Time                // embed time
	Files map[string]*EmbeddedFile // ALL embedded files by full path
	Dirs  map[string]*EmbeddedDir  // ALL embedded dirs by full path
}

EmbeddedBox defines an embedded box

type EmbeddedDir

type EmbeddedDir struct {
	Filename   string
	DirModTime time.Time
	ChildDirs  []*EmbeddedDir  // direct childs, as returned by virtualDir.Readdir()
	ChildFiles []*EmbeddedFile // direct childs, as returned by virtualDir.Readdir()
}

EmbeddedDir is instanced in the code generated by the rice tool and contains all necicary information about an embedded file

type EmbeddedFile

type EmbeddedFile struct {
	Filename    string // filename
	FileModTime time.Time
	Content     string
}

EmbeddedFile is instanced in the code generated by the rice tool and contains all necicary information about an embedded file

type EmbeddedSingle

type EmbeddedSingle struct {
	Name string        // single name
	Time time.Time     // embed time
	File *EmbeddedFile // embedded file
}

EmbeddedSingle defines an embedded single

Jump to

Keyboard shortcuts

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