Skip to content
A dead simple tool to embed a file to Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Init commit Feb 8, 2018 Update README Jul 1, 2018


A dead simple tool to embed a file to Go.

Usage of file2byteslice:
  -buildtags string
        build tags
        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

file2byteslice -input INPUT_FILE -output OUTPUT_FILE -package PACKAGE_NAME -var VARIABLE_NAME
You can’t perform that action at this time.