GO-BINDATA.SHULHAN(1)

πŸ“¦ version 3.6.1, in fedora 43

πŸ’– 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 β€” basically debug's cousin, except she does not emit absolute paths. heads up though: she expects a rootDir variable 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 .rodata hack 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