emb
github.com/256dpi/embed
go get github.com/256dpi/embed
emb

github.com/256dpi/embed

A small tool for embedding files in a Go source file.

by Joël Gähwiler

v0.1.2 (see all)
go get github.com/256dpi/embed
Readme

embed

Go Report Card

A small tool for embedding files in a Go source file.

Install

go get github.com/256dpi/embed

Example

//go:generate go run github.com/embed -pkg frontend -strings ./assets 

Usage

Usage of embed:
  -const
        Whether to use constants instead of a map.
  -export
        Whether to export variables.
  -name string
        The map name. (default "files")
  -out string
        The output filename. (default "files.go")
  -pkg string
        The package name. (default "main")
  -strings
        Whether to use strings instead of byte slices.
  -strip
        Whether to strip names of path and extension.

GitHub Stars

11

LAST COMMIT

2yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.1.0
1yr ago
v0.1.2
2yrs ago
v0.1.1
2yrs ago
No alternatives found
No tutorials found
Add a tutorial