bindata

package
v0.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2013 License: Apache-2.0, CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName         = "bindata"
	AppVersionMajor = 2
	AppVersionMinor = 1
)

Variables

View Source
var AppVersionRev string

revision part of the program version. This will be set automatically at build time like so:

go build -ldflags "-X main.AppVersionRev `date -u +%s`"

Functions

func CreateTOC

func CreateTOC(dir, pkgname string) error

createTOC writes a table of contents file to the given location.

func SafeFuncname

func SafeFuncname(in, prefix string) string

safeFuncname creates a safe function name from the input path.

func Translate

func Translate(input io.Reader, output io.Writer, pkgname, funcname string, uncompressed, nomemcpy bool)

translate translates the input file to go source code.

func Version

func Version() string

func WriteTOCInit

func WriteTOCInit(output io.Writer, filename, prefix, funcname string)

WriteTOCInit writes the TOC init function for a given data file replacing the prefix in the filename by "", funcname being the translated function name

Types

type ByteWriter

type ByteWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func (*ByteWriter) Write

func (w *ByteWriter) Write(p []byte) (n int, err error)

type StringWriter

type StringWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func (*StringWriter) Write

func (w *StringWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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