package bindata

import "github.com/coreos/etcd/third_party/github.com/jteeuwen/go-bindata/lib"

Index

Constants

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

Variables

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)

Source Files

bytewriter.go stringwriter.go toc.go translate.go version.go

Version
v0.2.0
Published
Dec 23, 2013
Platform
linux/amd64
Imports
9 packages
Last checked
47 minutes ago

Tools for package owners.