An open API service indexing awesome lists of open source software.

https://github.com/f1shl3gs/bindata

convert any file into manageable Go source code for http service
https://github.com/f1shl3gs/bindata

bindata golang http static

Last synced: 3 months ago
JSON representation

convert any file into manageable Go source code for http service

Awesome Lists containing this project

README

          

# bindata

**NOTE: [embed](https://golang.org/pkg/embed/) is introduced since Golang 1.16, so this repo is no need to exist anymore.**

convert any file into manageable Go source code for http service

## Usage
```
bindata gen -i /path/to/your/assets -i /path/to/your/another/assets -p yourPackageName -o /path/to/your/dist_gen.go
```

## Docker
docker image is available `docker pull f1shl3gs/bindata:latest`

## Features
- Build Tags
- Gzip Level, decompress only happened when the asset first access
(`--gzip-best-compress` is useful when you have a lot asset
or want minimal dist size)
- Transform file path, eg: `--transfer your/prefix:your/new/prefix`