package
0.2.4
Repository: https://github.com/ncruces/go-fs.git
Documentation: pkg.go.dev

# README

A command to statically generate a memfs.FileSystem

Usage: memfsgen [options] <source-dir> <target-file>
  -mimetype value
        register a MIME type ("png:image/png", "txt:text/plain"…)
  -minify
        minify web assets
  -pkg string
        package name (default: lowercase name of <target-file> directory)
  -tag string
        build constraint
  -var string
        variable name (default "assets")

Typical usage will be through go generate:

//go:generate go run github.com/ncruces/go-fs/memfsgen -pkg main -var assets static assets.go

This generates a single assets.go file from the contents of directory static.

The file declares a single var assets *memfs.FileSystem in package main.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author