proxy.golang.org : github.com/flanksource/esc
esc embeds files into go programs and provides http.FileSystem interfaces to them. It adds all named files or files recursively under named directories at the path specified. The output file provides an http.FileSystem interface with zero dependencies on packages outside the standard library. Usage: The flags are: After producing an output file, the assets may be accessed with the FS() function, which takes a flag to use local assets instead (for local development). FS(Must)?(Byte|String) returns an asset as a (byte slice|string). FSMust(Byte|String) panics if the asset is not found. esc can be invoked by go generate: Embedded assets can be served with HTTP using the http.FileServer. Assuming you have a directory structure similar to the following: Where main.go contains:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/flanksource/esc
License: MIT
Latest release: about 6 years ago
First release: over 7 years ago
Namespace: github.com/flanksource
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 26 days ago