An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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:

Ecosystem
proxy.golang.org
Latest Release
v0.2.1
about 7 years ago
Versions
3
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/flanksource/esc
spec
License MIT
Namespace github.com/flanksource
First Release over 8 years ago
Last Synced 20 days ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%