Documentation ¶
Overview ¶
Program resource-constants generates Go source files that embed resource files read at compile time.
Usage:
bin/resource-constants --base_dir <directory-with-static-files>/ > src/resources/constants.go
Using the generated code:
import "resources" var fileContents = resources.Constants["fileName"]
Click to show internal directories.
Click to hide internal directories.