Package icns implements an encoder for Apple's `.icns` file format.
Package aasx provides functionality for reading and writing packaged file format of an Asset Administration Shell (AAS) v3.
Package playwright is a fuego-formats TreeParser for Playwright spec files.
Package adr is a fuego-formats parser for Architecture Decision Records — Markdown files with YAML frontmatter following the fuego-adr convention, claimed by the *.adr.md compound suffix.
Package logger provides structured logging for Go applications with support for multiple output formats and file rotation.
Package mermaid is a fuego-formats parser for Mermaid diagram files (*.mmd).
bindata converts any file into managable Go source code. Useful for embedding binary data into a go program. The file data is optionally gzip compressed before being converted to a raw byte slice. The following paragraphs cover some of the customization options which can be specified in the Config struct, which must be passed into the Translate() call. When used with the `Debug` option, the generated code does not actually include the asset data. Instead, it generates function stubs which load the data from the original file on disk. The asset API remains identical between debug and release builds, so your code will not have to change. This is useful during development when you expect the assets to change often. The host application using these assets uses the same API in both cases and will not have to care where the actual data comes from. An example is a Go webserver with some embedded, static web content like HTML, JS and CSS files. While developing it, you do not want to rebuild the whole server and restart it every time you make a change to a bit of javascript. You just want to build and launch the server once. Then just press refresh in the browser to see those changes. Embedding the assets with the `debug` flag allows you to do just that. When you are finished developing and ready for deployment, just re-invoke `go-bindata` without the `-debug` flag. It will now embed the latest version of the assets. The `NoMemCopy` option will alter the way the output file is generated. It will employ a hack that allows us to read the file data directly from the compiled program's `.rodata` section. This ensures that when we call call our generated function, we omit unnecessary memcopies. The downside of this, is that it requires dependencies on the `reflect` and `unsafe` packages. These may be restricted on platforms like AppEngine and thus prevent you from using this mode. Another disadvantage is that the byte slice we create, is strictly read-only. For most use-cases this is not a problem, but if you ever try to alter the returned byte slice, a runtime panic is thrown. Use this mode only on target platforms where memory constraints are an issue. The default behaviour is to use the old code generation method. This prevents the two previously mentioned issues, but will employ at least one extra memcopy and thus increase memory requirements. For instance, consider the following two examples: This would be the default mode, using an extra memcopy but gives a safe implementation without dependencies on `reflect` and `unsafe`: Here is the same functionality, but uses the `.rodata` hack. The byte slice returned from this example can not be written to without generating a runtime error. The NoCompress option indicates that the supplied assets are *not* GZIP compressed before being turned into Go code. The data should still be accessed through a function call, so nothing changes in the API. This feature is useful if you do not care for compression, or the supplied resource is already compressed. Doing it again would not add any value and may even increase the size of the data. The default behaviour of the program is to use compression. The keys used in the `_bindata` map are the same as the input file name passed to `go-bindata`. This includes the path. In most cases, this is not desireable, as it puts potentially sensitive information in your code base. For this purpose, the tool supplies another command line flag `-prefix`. This accepts a portion of a path name, which should be stripped off from the map keys and function names. For example, running without the `-prefix` flag, we get: Running with the `-prefix` flag, we get: With the optional Tags field, you can specify any go build tags that must be fulfilled for the output file to be included in a build. This is useful when including binary data in multiple formats, where the desired format is specified at build time with the appropriate tags. The tags are appended to a `// +build` line in the beginning of the output file and must follow the build tags syntax specified by the go tool.
Package okf provides a memory.Store over Open Knowledge Format (OKF) bundles: knowledge represented as Markdown files with YAML frontmatter, organized in a git-versioned directory tree.
Package stl implements functions to read, write, and transform files in the Stereolithography/Surface Tesselation Language (.stl) file format used in 3D modelling.
Package sbom generates Software Bill of Materials (SBOM) documents in the CycloneDX JSON format from a Composer lock file.
Package humane formats file sizes and relative dates the way macOS Finder does.
Command tforg formats Terraform files (terraform fmt equivalent) and organizes top-level blocks into their conventional files.
Package gff3 provides a parser, writer, and utilities for the Generic Feature Format Version 3 (GFF3) file format.
Package bzip3 is a pure-Go port of the bzip3 compression algorithm (https://github.com/iczelia/bzip3), file-format compatible with the C implementation.
Command md2 converts markdown files to other formats (currently PDF).
Command stp formats plain text files.
Package tatami implements a compact columnar single-file storage format for web-scale crawl and search.
Package log is togo's configurable logging plugin: levels, text/JSON format, and file output.
Package callsite provides helpers for capturing call-site context (file name, line number, and function name) and prefixing it onto formatted strings and errors.
Package upd upgrades NPM package dependencies in package.json files while preserving formatting.
Package rdb implements parsing and encoding of the Redis RDB file format.
Package volume defines the shared block-device contract for the go-volumes family: a fixed-size, random-access store that higher layers read and write through, decoupling WHERE the bytes live (a pooled file volume, an S3-backed chunk store, an NBD export, a qcow2/raw image) from the FORMAT layered on top (ext4, xfs, squashfs, an OCI image, …).
Package mtf provides a reader for the Microsoft Tape Format (MTF) used by NTBACKUP.EXE (.bkf) files and LTO tapes.
Package rdb implements parsing and encoding of the Redis RDB file format.
Package caddyfileparser parses Caddyfile, DNS Corefile, and Nginx configuration file formats into structured Go types.
Package sqlite3 decodes the SQLite-3 file format.
Package vdf parses and writes Valve Data Format (VDF / KeyValues) text files.
Package pgzip implements reading and writing of gzip format compressed files, as specified in RFC 1952.
Package cleanenv gives you a single tool to read application configuration from several sources with ease. - read from several file formats (YAML, JSON, TOML, ENV, EDN) and parse into the internal structure; - read environment variables into the internal structure; - output environment variable list with descriptions into help output; - custom variable readers (e.g. if you want to read from remote config server, etc). You can just prepare the config structure and fill it from the config file and environment variables. You can list all of your environment variables by means of help output: Then run go run main.go -h and the output will include: For more detailed information check examples and example tests. Example_setter uses type with a custom setter to parse environment variable data Example_updater uses a type with a custom updater
Package cfb reads and writes Microsoft Compound File Binary (CFB) files, the container format used by .msg, .doc, .xls, .msi, and other COM Structured Storage consumers.
Package stripes is a streaming, ANSI-colored pretty-printer for structured data formats: JSON, YAML, XML, HTML, CSV, protobuf, parquet, Dockerfiles, the Go toolchain's flat files, markdown, source code, txtar archives, WebAssembly, and plain text.
Package riff implements the Resource Interchange File Format, used by media formats such as AVI, WAVE and WEBP.
Package crack provides document text extraction for various file formats.
Package auth defines a file format for holding authentication information needed by clients of Kubernetes.
video-transcoding-api HTTP API for transcoding media files into different formats using pluggable providers.
Package config implements encoding and decoding of git config files.
Package objfile implements encoding and decoding of object files.
Package idxfile implements encoding and decoding of packfile idx files.