file2byteslice

package module
Version: v0.0.0-...-5340248 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 3

README

file2byteslice

A dead simple tool to embed a file to Go.

Usage of file2byteslice:
  -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

file2byteslice -input INPUT_FILE -output OUTPUT_FILE -package PACKAGE_NAME -var VARIABLE_NAME

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, r io.Reader, compress bool, buildTags string, packageName string, varName string) error

Write writes a Go byte slice literal to w from the bytes of r.

Types

This section is empty.

Source Files

Directories

Path Synopsis
cmd
file2byteslice
file2byteslice is a dead simple tool to embed a file to Go.
file2byteslice is a dead simple tool to embed a file to Go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL