Skip to content

vikasgorur/bespoke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bespoke

GoDoc

Package bespoke provides a way to create custom binaries: files that are executable that also contain additional data. The data can either be a key-value map or an arbitrary file.

Motivation

A common use for the Go language is creating command-line tools. As a concrete example, consider a web application that allows its users to download a command-line client to interact with it. The client may need to be configured with such things as the user name or an access token. Using bespoke you can create a binary that is specifically configured for each user who downloads it.

See the documentation for more information.

Example

This package lets you do things like this:

$ curl http://localhost:6060/calvin > hello_calvin
$ chmod +x hello_calvin; ./hello_calvin
hello calvin

$ curl http://localhost:6060/hobbes > hello_hobbes
$ chmod +x hello_hobbes; ./hello_hobbes
hello hobbes

Contributing

Feature requests, pull requests, questions and comments are welcome!

Tweet at me: @vikasgorur

About

Create customized Go binaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages