Back to godoc.org

Package bindata

v0.2.0
Latest Go to latest

The latest major version is .

Published: Dec 23, 2013 | Licenses: Apache-2.0 , CC0-1.0 | Module: go.etcd.io/etcd

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`"

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

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier