embed

command
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

The embed command embeds a directory structure into Go code.

To embed a directory, a Go file is produced containing the raw bytes of a zip file with that directory structure in it as a byte array.

Example:

embed -o embed.go -pkg main assets

This will produce a file called embed.go containing a byte array called embed.

Jump to

Keyboard shortcuts

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