Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yngfoxx/filetobyteslice
https://github.com/yngfoxx/filetobyteslice
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yngfoxx/filetobyteslice
- Owner: yngfoxx
- Created: 2023-09-27T08:54:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T10:07:36.000Z (about 1 year ago)
- Last Synced: 2023-09-30T03:57:19.416Z (about 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# filetobyteslice
A dead simple tool to embed a file to Go.
```
Usage of filetobyteslice:
-buildtags string
build tags
-compress
use gzip compression
-input string
input filename
-output string
output filename
-package string
package name (default "main")
-var string
variable name (default "_")
```## How to use
```sh
filetobyteslice -input INPUT_FILE -output OUTPUT_FILE -package PACKAGE_NAME -var VARIABLE_NAME
```