Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
/ embd Public archive

A tool to embed files into go source code as strings

Notifications You must be signed in to change notification settings

tscholl2/embd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

embd

A tool to embed files into go source code as strings.

embd [options] file

Examples

$ embd --help
  embed a file into go source code
  Example: 'embd a.sql' creates a.sql.go which which has 'const a = "...contents of a.sql..."'
  Example: 'embd a.sql -n foo' creates a.sql.go with 'const foo = ...'
  Options:
    -n string
        name of the variable to generate (default <filename>)

More

look at the godoc: https://godoc.org/github.com/tscholl2/embd

About

A tool to embed files into go source code as strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages