File: go-bindata.8

package info (click to toggle)
golang-bindata 3.0.7%2Bgit20151023.72.a0ff256-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 272 kB
  • sloc: makefile: 31
file content (53 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.\" Copyright (c) 2014 Vincent Bernat <bernat@debian.org>
.\"
.\" 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 .