-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lab259/dev
New routing API + built-in error handling + 0 allocations... and more
- Loading branch information
Showing
52 changed files
with
2,982 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
## Contributing | ||
|
||
### Prerequisites | ||
|
||
What things you need to setup the project: | ||
|
||
- [go](https://golang.org/doc/install) | ||
- [golang/dep](https://github.com/golang/dep) | ||
- [ginkgo](http://onsi.github.io/ginkgo/) | ||
|
||
### Environment | ||
|
||
For start developing the SDK you must create a fake `GOPATH` structure: | ||
|
||
``` | ||
+-- / | ||
|---- src | ||
|------ github.com | ||
|-------- lab259 | ||
|---------- http <- Here is where you will clone this repository. | ||
``` | ||
|
||
Use the following command: | ||
|
||
```bash | ||
mkdir -p src/github.com/lab259/http && git clone [email protected]:lab259/http.git src/github.com/lab259/http | ||
``` | ||
|
||
Now, the dependencies must be installed. | ||
|
||
``` | ||
cd src/github.com/lab259/http && make dep-ensure | ||
``` | ||
|
||
:wink: Finally, you are done to start developing. | ||
|
||
### Running tests | ||
|
||
In the `src/github.com/lab259/http` directory, execute: | ||
|
||
```bash | ||
make test | ||
``` | ||
|
||
To enable coverage, execute: | ||
|
||
```bash | ||
make coverage | ||
``` | ||
|
||
To generate the HTML coverage report, execute: | ||
|
||
```bash | ||
make coverage coverage-html | ||
``` | ||
|
||
### Running examples | ||
|
||
In the `src/github.com/lab259/http` directory, execute: | ||
|
||
```bash | ||
EXAMPLE="todos" make run | ||
``` | ||
|
||
`EXAMPLE` is any example listed in `/examples` folder. |
Oops, something went wrong.