package embedded
import "github.com/GeertJohan/go.rice/embedded"
Package embedded defines embedded data types that are shared between the go.rice package and generated code.
Index ¶
- Constants
- Variables
- func RegisterEmbeddedBox(name string, box *EmbeddedBox)
- type EmbeddedBox
- type EmbeddedDir
- type EmbeddedFile
Constants ¶
const ( EmbedTypeGo = 0 EmbedTypeSyso = 1 )
Variables ¶
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 EmbedType int // kind of embedding 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
func (*EmbeddedBox) Link ¶
func (e *EmbeddedBox) Link()
Link creates the ChildDirs and ChildFiles links in all EmbeddedDir's
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 ¶
EmbeddedFile is instanced in the code generated by the rice tool and contains all necicary information about an embedded file
Source Files ¶
- Version
- v1.0.0
- Published
- Mar 18, 2019
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 4 days ago –
Tools for package owners.