gopherhole

module
v0.0.0-...-3600800 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: GPL-3.0

README

Gopherhole

Go Report Card

Gopherhole is a set of cli tools that encodes data in order to compress it. Its primary form of communication between tools is Google's protocol buffers. This project is meant only as a learning excercise.

Download and Install
  1. Install and configure Go for you operating system. See Here
  2. Once Go is installed and configured, run this command to install the gopherhole subtools
go get github.com/penguingovernor/gopherhole/...
  1. Finally, install gopherhole by symlinking gopherhole to anywhere in your $PATH variable

Example:

sudo ln -s $GOPATH/src/github.com/penguingovernor/gopherhole/gopherhole /opt/bin
Documentation

After installing, you can use go doc to get documenation:

go doc github.com/penguingovernor/gopherhole/cmd/cencode
go doc github.com/penguingovernor/gopherhole/cmd/scompress
go doc github.com/penguingovernor/gopherhole/cmd/cdecode
Running gopherhole

gopherhole can be run in the following format:

gopherhole $INPUTFILE $COMPRESSIONTYPE

Example:

echo "Hello, world\!" > input.txt # Creates input.txt
gopherhole input.txt zip # Creates input.zip

gopherhole supports the following compression types:

  • "gz" for gzip compression
  • "tar" for tar archiving
  • "zip" for zip archiving

Directories

Path Synopsis
cmd
cdecode
cdecode is a client cli decoding tool.
cdecode is a client cli decoding tool.
cencode
cencode is the client CLI compression-request tool to generate a protocol buffer for the server-side compression tool.
cencode is the client CLI compression-request tool to generate a protocol buffer for the server-side compression tool.
scompress
scompress is a cli server tool that handles protocol buffers and compresses the data, then to reencode them
scompress is a cli server tool that handles protocol buffers and compresses the data, then to reencode them

Jump to

Keyboard shortcuts

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