proxy.golang.org : gitlab.com/stone.code/fileembed-go
This is a command-line utility to take a number of source files, and embed them into a Go package. The utility converts the source files, typically static assets required by the binary, and creates a new Go source file with a byte array (or a string) for each source file. The byte arrays are initialized with the contents of the source files. Additionally, the Go file created will contain a map, called 'embeddedfiles', that can be used to lookup the binary data using the filename. The keys of this map can be modified with the command-line options -basename and -force-lowercase. The filenames will be converted to a platform independent form by converting all path separators to forward slashes. By setting -modetime=true, the new Go source file will contain a const value called 'ModTime', which will contain a string representation of the time that the source file was generated. This can be used to support caching of the embedded data, such as with http.ServeContent.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/gitlab.com/stone.code/fileembed-go
Keywords:
go
License: BSD-3-Clause
Latest release: over 9 years ago
First release: over 9 years ago
Namespace: gitlab.com/stone.code
Stars: 0 on GitLab.com
Forks: 0 on GitLab.com
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago