embed

package module
v0.0.0-...-edcd0ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2017 License: MIT Imports: 0 Imported by: 0

README

embed Build Status GoDoc

Embedding files into Go programs

Synopsis

Embed provides an http.FileSystem implementation. The FileSystem allows arbitrary file data to be added to it, and optionally fall back to the operating system when a requested named file isn't found.

An embed command is provided for easy insertion of data into the FileSystem. It generates a Go file that includes the contents of all files or directories passed to it. It also supports directory recursion view the '/...' suffix.

Documentation

Overview

Package embed contains an implementation of http.FileSystem that stores the file data in itself. It also includes a tool for generating Go code that adds files from the operating system to the http.FileSystem implementation.

The following subpackages contain:

  • filesystem - contains the implementation of http.FileSystem.
  • cmd/embed - contains the tool that generates the filesystem inserts.

This package itself is used for documentation.

Directories

Path Synopsis
cmd
embed
Embed is a tool for creating filesystem entries by inserting file data as safely-quoted strings in the generated Go file.
Embed is a tool for creating filesystem entries by inserting file data as safely-quoted strings in the generated Go file.
The filesystem package provides an http.FileSystem implementation that may contain file data not present in the host operating system.
The filesystem package provides an http.FileSystem implementation that may contain file data not present in the host operating system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL