Skip to main content

Simple environment manager for the Go programming language

Project description

[![Build Status](https://travis-ci.org/pwoolcoc/goenv.svg)](https://travis-ci.org/pwoolcoc/goenv)

# goenv - Set up a Golang environment

I got tired of manually setting my GOPATH when I went from one project to another, so I wrote a small utility to set up my environment for me. It is similar in spirit to Python’s virtualenv, though it does less, and does it a little differently.

The main difference is that instead of an ‘activate’ script that sets up your environment, this opens up a new subshell for you to work in. It will also download and install the version of Go that you want it to.

## Installation

Currently goenv is written in python, so installation is a simple pip install away:

$ sudo pip install pygoenv

## Usage

$ cd /path/to/project $ echo $GOPATH

# simplest usage $ goenv Downloading http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz Extracting /home/user/.cache/goenv/go1.2.linux-amd64.tar.gz to /home/user/.config/goenv/dists/1.2 (golang-1.2) $ echo $GOPATH /path/to/project:/path/to/project/pkg/somepkg ^D $

# You don’t have to download a new go tarball every time… $ goenv Using existing tarball Go version 1.2 already exists, skipping extract (golang-1.2) $ ^D $

# specify Golang version $ goenv –go-version 1.1 Downloading http://go.googlecode.com/files/go1.1.linux-amd64.tar.gz Extracting /home/user/.cache/goenv/go1.1.linux-amd64.tar.gz to /home/user/.config/goenv/dists/1.1 (golang-1.1) $

## Contact

email: paul@woolcock.us

twitter: @pauldwoolcock

jabber: pauldwoolcock@dukgo.com

irc: duncan @ irc.mozilla.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygoenv-1.7.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

pygoenv-1.7.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygoenv-1.7.0.tar.gz.

File metadata

  • Download URL: pygoenv-1.7.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygoenv-1.7.0.tar.gz
Algorithm Hash digest
SHA256 cc45d9fdcbef99412255db78b175db4d24dcde978c229f538875ff89ed9a8eb2
MD5 4b4425c26504a0cf6b6c74c3d8c1bc91
BLAKE2b-256 5e9667e35879cffd63310c37675ed712662e616cfc6c110703875ee8bc161253

See more details on using hashes here.

File details

Details for the file pygoenv-1.7.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pygoenv-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e87d6c28624e8bb2b4fec2cee4fc84e9cf0af4bd5d502d76ac6f54f5151dafc9
MD5 daacd5f64275c0900f1af6f12147d9b9
BLAKE2b-256 1fabdaacb7d360c38f30798bd4bacd10f50738fd77c60d9f22633905793870e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page