Skip to content

Commit

Permalink
Push the stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Oct 31, 2016
1 parent 0f977b8 commit d2aaffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ language: go

go:
- go1.7
- tip
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Installation
The only requirement is the [Go Programming Language](https://golang.org/dl).

```bash
$ go get -u github.com/kataras/go-errors
$ go get -u gopkg.in/kataras/go-errors.v0
```


Expand All @@ -26,7 +26,7 @@ Docs
`New` receives a message format and creates a new Error. Message format, which is created with .New, is never changes.

```go
import "github.com/kataras/go-errors"
import "gopkg.in/kataras/go-errors.v0"

var errUserAlreadyJoined = errors.New("User with username: %s was already joined in this room!")
```
Expand All @@ -37,7 +37,7 @@ var errUserAlreadyJoined = errors.New("User with username: %s was already joined


```go
import "github.com/kataras/go-errors"
import "gopkg.in/kataras/go-errors.v0"

var errUserAlreadyJoined = errors.New("User with username: %s was already joined in this room!")

Expand All @@ -55,7 +55,7 @@ func anything() error {
`Append` and `AppendErr` adds a message to existing message and returns a new error.

```go
import "github.com/kataras/go-errors"
import "gopkg.in/kataras/go-errors.v0"

var errUserAlreadyJoined = errors.New("User with username: %s was already joined in this room!")

Expand All @@ -68,7 +68,7 @@ func anything() error {
}
```
```go
import "github.com/kataras/go-errors"
import "gopkg.in/kataras/go-errors.v0"

var errUserAlreadyJoined = errors.New("User with username: %s was already joined in this room!")
var errSpecifyOtherRoom = errors.New("Please specify other room.")
Expand All @@ -87,7 +87,7 @@ Use `AppendErr` with go standard error type

```go
import (
"github.com/kataras/go-errors"
"gopkg.in/kataras/go-errors.v0"
"fmt"
)

Expand Down

0 comments on commit d2aaffd

Please sign in to comment.