GO-BINDATA.SHULHAN(1)
π GO-BINDATA.SHULHAN β the manual, but make it cute β¨
okay bestie, gather round, because this one is actually iconic. so this page? it's from GO-BINDATA.SHULHAN(1), aka the User Commands corner of the manual universe, and it's about a lil utility that takes your files and turns them into Go code. like, yes, it really does that. no cap. π
πΈ NAME πΈ
go-bindata.shulhan β a small utility which generates Go code from any file. literally any file. she's versatile like that. π
π¦ SYNOPSIS π¦
go-bindata [options] <input directories>
so you pass her your [options] and then one or more <input directories>, and she does the thing. that's the whole vibe check. β¨
π DESCRIPTION π
here's the full rundown of every flag she takes, bestie. no skipping, no summarising, we're doing all of them, because you deserve the whole menu. π
-assetprefix stringβ sets the prefix for the name of the asset function. if you want those functions exported, start it with a capital letter, mkay? (default"bindata") π-debugβ do not embed the assets, just hand over the embedding API instead. the contents still get loaded from disk, so she's not fully off the hook. π-devβ basicallydebug's cousin, except she does not emit absolute paths. heads up though: she expects arootDirvariable to already exist in the generated code's package. π-ignore valueβ regex pattern to ignore. bye bestie, not you. β-include valueβ regex pattern to include. hiii bestie, yes you. π«Ά-md5checksumβ MD5 checksums will be calculated for assets. numbers, but make it cryptographic. π₯-mode uintβ optional file mode override, and it applies to all the files. all of them. every single one. β-modtime intβ optional modification unix timestamp override, also for all files. so if you want them all to share a birthday, here's your moment. π-nocompressβ assets will *not* be GZIP compressed when this flag is specified. note the dramatic asterisks, she's serious. π-nomemcopyβ uses a.rodatahack to get rid of unnecessary memcopies. but β go read the documentation to see what implications this carries, because there are implications. π-nometadataβ assets will not preserve size, mode, and modtime info. she's letting go of the past. π¦-o stringβ optional name of the output file to be generated. (default"bindata.go") π-pkg stringβ the package name to use in the generated code. (default"main") π¦-prefix stringβ optional path prefix to strip off asset names. snip snip. βοΈ-splitβ split the output into several files, so you don't end up with one giant output file giving you main character energy in the worst way. πΈ-tags stringβ optional set of build tags to include. tag her in. π·οΈ-verboseβ prints the name of the file as they are being processed, so you can watch her work in real time. we love a transparent queen. π-versionβ displays version information. the receipts. π§Ύ
bestie reminder: keep your flags exactly as written, because she is not flexible about spelling. not even a little. π
and that's the whole page, gorgeous. this was go-bindata.shulhan 3.6.1, dated August 2025 β go forth, generate your Go code, and slay. periodt. πβ¨
π¦ where this page comes from
- fedora 43: golang-github-shulhan-bindata 3.6.1-18.fc43 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms