Categorygithub.com/getlantern/byteexec
modulepackage
0.0.0-20220903142956-e6ed20032cfd
Repository: https://github.com/getlantern/byteexec.git
Documentation: pkg.go.dev

# README

byteexec Travis CI Status Coverage Status GoDoc

byteexec provides a Golang package that allows executing files that are stored/embedded as Go byte arrays.

To install:

go get github.com/getlantern/byteexec

For docs:

godoc github.com/getlantern/byteexec

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetNames returns the names of the assets.
Existing is like New, but specifically for programs which already exist in the given file.
New creates a new Exec using the program stored in the provided data, at the provided filename (relative or absolute path allowed).

# Constants

NewFileMode is the mode assigned to files passed to New.

# Structs

Exec is a handle to an executable that can be used to create an exec.Cmd using the Command method.