utils

command
v0.0.0-...-828174d Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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"]

Jump to

Keyboard shortcuts

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