Giter Site home page Giter Site logo

goenv's Introduction

README

forked from https://bitbucket.org/fernandosanchezjr/goenv

goenv

  • goenv is a simple tool that mimics python's virtualenv, for use in go projects.
  • Version 0.1

Set up

Clone repository:

#!bash

hg clone https://bitbucket.org/fernandosanchezjr/goenv goenv

Enter goenv folder, activate, and install:

#!bash

cd goenv
source bin/activate
make_install

Optionally, you may deactivate the goenv:

#!bash

deactivate

Usage

Once goenv is installed, you may use it similarly to virtualenv

#!bash

goenv ~/projects/test_go_project
cd ~/projects/test_go_project
source bin/activate

Note: you may source the activate script from any location

#!bash

source ~/projects/test_go_project/bin/activate

Built-in shell commands

goenv sets a few built-in commands for convenience

#!bash

build
build_all
make_clean
make_install
make_uninstall
deactivate
  • build: builds go files in current folder using go install
  • build_all: builds go files in all folders using go install
  • make_clean: cleans all files generated in the active goenv's bin folder during compilation (except for activate script)
  • make_install: builds all folders, and installs all files contained in the active goenv's bin folder to /usr/local/bin
  • make_uninstall: builds all folders, and uninstalls all files contained in the active goenv's bin folder from /usr/local/bin if they exist
  • deactivate: deactivates the goenv

Dependencies

  • bash
  • find
  • install
  • A working Go 1.3+ installation

Contribution guidelines

  • Have a bug or an issue? Have a pull request? File an issue on the issue tracker!

goenv's People

Contributors

fernandobixly avatar birkholz avatar fernandosanchezjr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.