Pinned Repositories
deepcopy
Deep copy things
feedlot
Generate Packer Templates from JSON or TOML definitions.
install-go
shell and powershell scripts for installing or updating Go: https://golang.org/doc/install
joefriday
Get system information as Go structs or serialized bytes: JSON and Flatbuffers, either one time or periodic.
json2go
Generate Go structs from JSON with struct tags: can specify type name, package name, and additional field tag keys with the CLI app.
salt-iptables
install and configure iptables firewall using SaltStack
serial-bowl
Go benchmarks of some serialization protocols using various structs.
states
A collection of salt states
struct2csv
Create CSV from struct or a slice of structs
utilitybelt
Contains utility functions/packages in Go that may be useful. Some of these were written before I discovered that there were versions in stdlib; in those situations prefer stdlib.
mohae's Repositories
mohae/deepcopy
Deep copy things
mohae/json2go
Generate Go structs from JSON with struct tags: can specify type name, package name, and additional field tag keys with the CLI app.
mohae/struct2csv
Create CSV from struct or a slice of structs
mohae/joefriday
Get system information as Go structs or serialized bytes: JSON and Flatbuffers, either one time or periodic.
mohae/feedlot
Generate Packer Templates from JSON or TOML definitions.
mohae/autofact
mohae/install-go
shell and powershell scripts for installing or updating Go: https://golang.org/doc/install
mohae/nocomment
removes comments
mohae/randchars
fast generation of random ASCII characters in Go (random strings): a-z, a-z0-9, A-Z, A-Z0-9, a-zA-Z, a-zA-Z0-9, Base64, and Base64URL
mohae/bench-rng
Go benchmarks of some Go CSPRNG & PRNG implementations
mohae/benchutil
format benchmark results as text, csv, or md and write to an io.Writer
mohae/benchgen
Creates benchmark application skeletons.
mohae/car
A cross-platform cli app for creating and extracting tarballs and zip filies
mohae/contour
contour: simplified application configuration package
mohae/feedlot-examples
Example templates for Feedlot; these should be used with the -example and -example_dir flags.
mohae/linewrap
either wrap lines so that they don't exceed line length or split a string into []string: word boundaries are respected. Uses a modified UTF-8 dash and whitespace list.
mohae/rapper
cli for wrapping text files in a path
mohae/systeminfo
Information about a system: CPU, RAM, network interfaces, OS, Kernel.
mohae/appname
returns name of the running app, excluding the .exe extension if it exists.
mohae/azure-sdk-for-go
Microsoft Azure SDK for Go
mohae/bar
example repo for subtree post
mohae/basecentos
base config
mohae/bauerpower
Euchre Baby!
mohae/bday
hash collisions: calculates the probability of collision for a number of values within a given range or the number of random values for a given probability of collision or the expected number of collisions
mohae/bench-ids
Benchmarks of some ID generation libraries: mostly uuid and snowflake like generation.
mohae/bench-regexp-simple
A simple benchmark comparing using regexp vs a strings.Index to find an instance of a substring.
mohae/carchivum
carchivum is a package for creating compressed archives
mohae/cjson
cjson (commented JSON): json with comments. Useful when using JSON for configs.
mohae/ezlog
basic leveled logging
mohae/quine
Bobby Quine, not actually a quine: generate go cli application skeleton