package
0.3.2
Repository: https://github.com/serulian/compiler.git
Documentation: pkg.go.dev

# Functions

DetectContentType returns the content type of the given bundled file.
EmptyBundle returns an empty bundle of files.
FileFromBytes returns a BundledFile from byte data.
FileFromString returns a BundledFile from byte data.
InMemoryBundle returns an in-memory bundle of files.
NewBundler returns a new file bundler.
WithFile returns a new file bundle that includes the given file.
WriteToFileSystem writes all the bundled files to the file system, placing them under the given directory.

# Constants

Resource indicates a produced resource, which will not be loaded directly.
Script indicates a produced script file, which will be loaded via a <script> tag.
Stylesheet indicates a produced stylesheet, which will be loaded via a <link> tag.

# Interfaces

Bundle represents a bundle of the files produced by a generator run.
BundledFile represents a single file added into a bundle.
Bundler presents an interface for collecting files for a bundle.

# Type aliases

Builder builds a new bundle for the given map of files.
FileKind defines the various supported kinds of files.