go-hello-psutils

command module
v0.0.0-...-116bba8 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: MIT Imports: 9 Imported by: 0

README

go-hello-psutils

Build go-hello-psutils-M.m.P-I.x86_64.rpm and go-hello-psutils_M.m.P-I_amd64.deb where "M.m.P-I" is Major.minor.Patch-Iteration.

Usage

A simple "hello world"-type program to examine github.com/shirou/gopsutil

Invocation
go-hello-psutils

Development

Dependencies
Set environment variables
export GOPATH="${HOME}/go"
export PATH="${PATH}:${GOPATH}/bin:/usr/local/go/bin"
export PROJECT_DIR="${GOPATH}/src/github.com/docktermj"
export REPOSITORY_DIR="${PROJECT_DIR}/go-hello-psutils"
Download project
mkdir -p ${PROJECT_DIR}
cd ${PROJECT_DIR}
git clone git@github.com:docktermj/go-hello-psutils.git
Download dependencies
cd ${REPOSITORY_DIR}
make dependencies
Build
Local build
cd ${REPOSITORY_DIR}
make build-local

The results will be in the ${GOPATH}/bin directory.

Docker build
cd ${REPOSITORY_DIR}
make build

The results will be in the .../target directory.

Test
cd ${REPOSITORY_DIR}
make test-local
Install
RPM-based

Example distributions: openSUSE, Fedora, CentOS, Mandrake

RPM Install

Example:

sudo rpm -ivh go-hello-psutils-M.m.P-I.x86_64.rpm
RPM Update

Example:

sudo rpm -Uvh go-hello-psutils-M.m.P-I.x86_64.rpm
Debian

Example distributions: Ubuntu

Debian Install / Update

Example:

sudo dpkg -i go-hello-psutils_M.m.P-I_amd64.deb
Cleanup
cd ${REPOSITORY_DIR}
make clean

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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