Go to file
Kyle Isom c8f839de73 Cleanups and improvements. 2017-09-12 03:38:47 -07:00
assert Assert now supports core dumps. 2016-04-28 14:14:48 -07:00
cmd cmd/stealchain-server: Present server cert, request client cert 2017-08-29 12:42:19 -07:00
die Add boolean function to die. 2016-04-28 14:15:22 -07:00
fileutil Add renfnv tool. 2016-08-23 12:59:34 -07:00
lib Deprecate CheckFatal in favour of assert package. 2016-04-28 13:17:23 -07:00
logging logging is now compatible with klog. 2016-04-01 15:08:55 -07:00
mwc Bring mwc to 100% coverage. 2016-04-28 12:42:05 -07:00
sbuf Add sbuf. 2015-09-22 01:26:02 -07:00
tee Cleanups and improvements. 2017-09-12 03:38:47 -07:00
testio Bring mwc to 100% coverage. 2016-04-28 12:42:05 -07:00
testutil Start a testutils package. 2016-04-28 11:33:41 -07:00
LICENSE Initial import. 2015-06-10 16:32:04 -07:00
README.md Update README. 2017-05-03 11:01:01 -07:00
doc.go Add top-level package documentation. 2015-12-22 20:57:32 -08:00

README.md

GOUTILS

This is a collection of small utility code I've written in Go; the cmd/ directory has a number of command-line utilities. Rather than keep all of these in superfluous repositories of their own, I'm putting them here.

Contents:

assert/         Error handling, assertion-style.
cmd/
    atping/     Automated TCP ping, meant for putting in cronjobs.
    certchain/  Display the certificate chain from a
                TLS connection.
    certdump/   Dump certificate information.
    certexpiry/ Print a list of certificate subjects and expiry times
                or warn about certificates expiring within a certain
                window.
    certverify/ Verify a TLS X.509 certificate, optionally printing
                the time to expiry and checking for revocations.
    clustersh/  Run commands or transfer files across multiple
                servers via SSH.
    csrpubdump/ Dump the public key from an X.509 certificate request.
    fragment/   Print a fragment of a file.
    jlp/        JSON linter/prettifier.
    pem2bin/    Dump the binary body of a PEM-encoded block.
    pembody/    Print the body of a PEM certificate.
    pemit/      Dump data to a PEM file.
    showimp/    List the external (e.g. non-stdlib and outside the
                current working directory) imports for a Go file.
    readchain/  Print the common name for the certificates
                in a bundle.
    renfnv/     Rename a file to base32-encoded 64-bit FNV-1a hash.
    showimp     Display the external imports in a package.
    stealchain/ Dump the verified chain from a TLS
                connection.
    tlskeypair/ Check whether a TLS certificate and key file match.
    utc/        Convert times to UTC.
    yamll/      A small YAML linter.
die/            Death of a program.
fileutil/       Common file functions.
lib/            Commonly-useful functions for writing Go programs.
logging/        A logging library.
mwc/            MultiwriteCloser implementation.
sbuf/           A byte buffer that can be wiped.
testio/         Various I/O utilities useful during testing.
testutil/       Various utility functions useful during testing.

Each program should have a small README in the directory with more information.

All code here is licensed under the MIT license.