Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 2.02 KB

README.md

File metadata and controls

29 lines (26 loc) · 2.02 KB

Go tools

GoDoc Go Report Card Build Status Coverage Status

This repository includes various tools and extensions that seemed to be missing in the standard go library and well known open source projects. Dependencies are managed with dep.

Content

  • pkg/extensions
    • collections - extensions for operations on collections
    • net - utilities to convert and operate on structures returned by the standard go's net package
    • os - improvements to go's os package, currently mostly about loading env vars with defaults
    • strings - to operate on slices of strings
    • time - a refresher utility to periodically execute a callback function
  • pkg/linux/command - execute linux commands and capture full output info: stdOut, stdErr and exitCode
  • nettools - various utilities that wrap basic Linux network configuration commands, including
    • conntrack - currently only supports removing entries from conntrack
    • interfaces - allows for abstract implementation of net package interface info
    • iproute - management of ip route route table entries and ip rule routing rules
    • ipset - management of ipset: sets and set entries
    • iptables - management of iptables rules based on unique rule comments

Getting started - contributing

  1. Install dep
  2. Clone this repository to $GOPATH/src/github.com/DevFactory/go-tools
  3. Install dependencies with dep: dep ensure -v --vendor-only
  4. Everything ready, you can run unit tests: go test -cover ./pkg/...