go-bindata(8)
β¨ NAME β¨
go-bindata β bestie, this thing embeds data right into your Go program π (and yes, it's a System Manager's Manual page, very official, very demure)
πΈ SYNOPSIS πΈ
go-bindata [options] input [input ...]
π¦ DESCRIPTION π¦
okay so picture this: you've got files. random files. binary files, even. and you want them inside your Go program. go-bindata literally converts any file into manageable Go source code, no cap. it's giving "embed binary data into a Go program" main character energy. and as a lil bonus, the file data is optionally gzip compressed before it gets turned into a raw byte slice π
input is an input directory containing the assets you wanna incorporate. and if you suffix it with /... it will be searched recursively β the way that just works, obsessed π«Ά
the options are as follows, bestie, read them all, don't skip:
-debugβ do not embed the assets, but still provide the embedding API. contents will still be loaded from disk. lowkey the "trust me bro it's temporary" mode π-nocompressβ assets will not be GZIP compressed when this flag is specified. so like, the compression? cancelled π-nomemcopyβ use a.rodatahack to get rid of unnecessary memcopies. refer to the documentation to see what implications this carries β fr fr, go read it, it's important β¨-pkgpackage β package name to use in the generated code. name your baby πΌ-prefixprefix β optional path prefix to strip off asset names. bye bye, prefix π-oβ name of the output file to be generated. this is where the magic lands π-tagstags β optional set of build tags to include. accessorize, bestie π
π AUTHORS π
the go-bindata program was written by Jim Teeuwen. iconic behavior, we stan π
and that's the whole page, bestie!! this one came straight out of the Debian manual, dated January 25, 2014, filed under go-bindata(8) β so when you're out here embedding assets, just remember who told you π§π
β
π¦ where this page comes from
- debian bookworm: go-bindata 3.0.7+git20151023.72.a0ff256-4+b5 Β· CC0
- debian trixie: go-bindata 3.0.7+git20151023.72.a0ff256-4+b16 Β· CC0
- ubuntu jammy: go-bindata 3.0.7+git20151023.72.a0ff256-3build2 Β· CC0
- ubuntu noble: go-bindata 3.0.7+git20151023.72.a0ff256-4build1 Β· CC0
- ubuntu noble: go-bindata 3.0.7+git20151023.72.a0ff256-4ubuntu0.24.04.3 Β· CC0
- ubuntu questing: go-bindata 3.0.7+git20151023.72.a0ff256-4build1
- ubuntu resolute: go-bindata 3.0.7+git20151023.72.a0ff256-5
- ubuntu stonking: go-bindata 3.0.7+git20151023.72.a0ff256-6
- Copyright (c) 2014 Vincent Bernat <bernat@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms