diff options
author | kballou <kballou@devnulllabs.io> | 2015-05-05 15:48:48 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2015-05-05 15:48:48 -0600 |
commit | 1e72998c4c3829e4ee4053cacf98e8769376e946 (patch) | |
tree | 0c14348f7effb88a2d8b2f2aa33df14743737aec | |
download | goprocnet-1e72998c4c3829e4ee4053cacf98e8769376e946.tar.gz goprocnet-1e72998c4c3829e4ee4053cacf98e8769376e946.tar.xz |
goprocnet: simplistic /proc/net file explorer
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | LICENSE | 21 | ||||
-rw-r--r-- | Makefile | 20 | ||||
-rw-r--r-- | README.markdown | 13 |
4 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a378919 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.o +*.a +*.so +_obj +_test +_build +_dist @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Kenny Ballou -- Alpine Data Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d33a25a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +VERSION=0 +MAJOR=0 +MINOR=1 +BUILD=`git rev-parse --short HEAD` +LDFLAGS="-X goprocnet.Version ${VERSION}.${MAJOR}.${MINOR}-${BUILD}" +all: build + +build: + @mkdir -p _build + @go build -ldflags ${LDFLAGS} -o _build/goprocnet + +test: + @go test + +install: + @go install -ldflags ${LDFLAGS} + +clean: + @/bin/rm -rf _build/ + @/bin/rm -rf _dist/ diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..c5b0832 --- /dev/null +++ b/README.markdown @@ -0,0 +1,13 @@ +# goprocnet: A simpl(istic)e Golang /proc/net explorer # + +goprocnet is a naive attempt to create something similar to `netstat` for Go. It +will likely not be nearly as feature rich. + +## License ## + +This code is licensed and distributed, as-is without warranty and in the hopes +it will be useful under the terms and conditions of the MIT license. Please see +the LICENSE file for more information. If the LICENSE file was not distributed +with your copy, you may also find it [on the web][1]. + +[1]: http://opensource.org/licenses/MIT |