You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.8 KiB

gopm - Go Package Manager
=========================
![GPMGo_Logo](https://raw.github.com/gpmgo/gopmweb/master/static/img/gpmgo.png?raw=true)
11 years ago
Gopm(Go Package Manager) is a Go package manage tool for search, install, update and share packages in Go.
11 years ago
Current Version: **v0.5.1**
# Requirement
11 years ago
- Go Development Environment >= 1.1.
- Command `ln -s` support on Mac OS and Unix-like systems.
- Command `mklink -j` support on Windows( **Windows Vista and later** ).
11 years ago
# Installation
11 years ago
Because we do NOT offer binaries for now, so before you install the gopm, you should have already installed Go Development Environment with version 1.1 and later.
```
go get github.com/gpmgo/gopm
```
11 years ago
The executable will be produced under `$GOPATH/bin` in your file system; for global use purpose, we recommand you to add this path into your `PATH` environment variable.
# Features
11 years ago
- No requirement for installing any version control system tool like `git`, `svn` or `hg` in order to download packages(although you have to install git for installing gopm though `go get` for now).
- Download, install or build your packages with specific revisions.
- When build program with `gopm build` or `gopm install`, everything just happen in its own GOPATH and do not bother anything you've done.
* Put your Go project on anywhere you want.
11 years ago
# Quick start
1. Show the command help
11 years ago
```
gopm help
```
2. Show gopm version
11 years ago
```
gopm version
```
3. Get a package
11 years ago
```
gopm get github.com/gpmgo/gopm
```
4. Search a package
11 years ago
```
gopm search gopm
```
5. Build a project, the build's arguments are the same as go build. But it will check all the dependencies and dowload them.
11 years ago
```
<change to project directory>
gopm build
```
6. Run a go file
11 years ago
```
<change to project directory>
gopm run main.go
```
7. Install
11 years ago
```
<change to project directory>
gopm install
```