embedfs

package
v0.0.0-...-62ab5ac Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2013 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGoPath

func CheckGoPath(path string) (string, error)

Searches the GOPATH and checks if the given path (absolute path) is relative to a component in the GOPATH. If so, return the path without the src or pkg so that the path is suitable for using as import statements

func DirAlloc

func DirAlloc(name string) *_dir

func NewDirToc

func NewDirToc(destDirAbs string, importRoot string, dirName string, subDirNames []string) *dirToc

func NewTranslationUnit

func NewTranslationUnit(importRoot string, packageName string, srcFile string, basename string, outDir string, byteSlice bool) *translationUnit

func Sanitize

func Sanitize(n string) (value string)

func Sanitize2

func Sanitize2(n string) (value string)

Types

type EmbedFile

type EmbedFile struct {
	FileName         string
	Original         string
	Compressed       bool
	Data             []byte
	OriginalSize     int64
	ModificationTime time.Time
}

func (*EmbedFile) IsDir

func (f *EmbedFile) IsDir() bool

func (*EmbedFile) ModTime

func (f *EmbedFile) ModTime() time.Time

func (*EmbedFile) Mode

func (f *EmbedFile) Mode() os.FileMode

func (*EmbedFile) Name

func (f *EmbedFile) Name() string

func (*EmbedFile) Size

func (f *EmbedFile) Size() int64

func (*EmbedFile) Sys

func (f *EmbedFile) Sys() interface{}

Jump to

Keyboard shortcuts

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