Documentation ¶
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, ...)
- func Version() string
- func WriteTOCInit(output io.Writer, filename, prefix, funcname string)
- type ByteWriter
- type StringWriter
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 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 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 ¶
type StringWriter ¶
Click to show internal directories.
Click to hide internal directories.