package bindata
import "github.com/coreos/etcd/third_party/github.com/jteeuwen/go-bindata/lib"
Index ¶
- Constants
- Variables
- func CreateTOC(dir, pkgname string) error
- func SafeFuncname(in, prefix string) string
- func Translate(input io.Reader, output io.Writer, pkgname, funcname string, uncompressed, nomemcpy bool)
- func Version() string
- func WriteTOCInit(output io.Writer, filename, prefix, funcname string)
- type ByteWriter
- type StringWriter
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 ¶
createTOC writes a table of contents file to the given location.
func SafeFuncname ¶
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 ¶
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 ¶
func (*ByteWriter) Write ¶
func (w *ByteWriter) Write(p []byte) (n int, err error)
type StringWriter ¶
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.1.2
- Published
- Oct 10, 2013
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 47 minutes ago –
Tools for package owners.