.\" Copyright (c) 2014 Vincent Bernat .\" .\" This file is licensed as CC0. .\" .Dd January 25, 2014 .Dt go-bindata 8 .Os .Sh NAME .Nm go-bindata .Nd embed data in a Go program .Sh SYNOPSIS .Nm .Op options .Ar input .Op Ar input ... .Sh DESCRIPTION .Nm converts any file into manageable Go source code. It is useful for embedding binary data into a Go program. The file data is optionally gzip compressed before being converted to a raw byte slice. .Pp .Ar input is an input directory containing the assets to incorporate. If suffixed by .Pa /... it will be searched recursively. .Pp The options are as follows: .Bl -tag -width Ds .It Fl debug Do not embed the assets, but provide the embedding API. Contents will still be loaded from disk. .It Fl nocompress Assets will *not* be GZIP compressed when this flag is specified. .It Fl nomemcopy Use a .rodata hack to get rid of unnecessary memcopies. Refer to the documentation to see what implications this carries. .It Fl pkg Ar package Package name to use in the generated code. .It Fl prefix Ar prefix Optional path prefix to strip off asset names. .It Fl o Name of the output file to be generated. .It Fl tags Ar tags Optional set of build tags to include. .El .Sh AUTHORS .An -nosplit The .Nm program was written by .An Jim Teeuwen .