Update README and examples to use gopkg.in import.

This commit is contained in:
Ola Holmström
2017-04-11 22:35:19 +02:00
parent ad282d4baf
commit 647ca280c6
6 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ your way so you can write real-time apps. Features include:
## Install ## Install
```bash ```bash
go get github.com/olahol/melody go get gopkg.in/olahol/melody.v1
``` ```
## [Example: chat](https://github.com/olahol/melody/tree/master/examples/chat) ## [Example: chat](https://github.com/olahol/melody/tree/master/examples/chat)
@@ -32,7 +32,7 @@ package main
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
) )
@@ -64,7 +64,7 @@ import (
"github.com/labstack/echo" "github.com/labstack/echo"
"github.com/labstack/echo/engine/standard" "github.com/labstack/echo/engine/standard"
"github.com/labstack/echo/middleware" "github.com/labstack/echo/middleware"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
) )
@@ -102,7 +102,7 @@ package main
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"github.com/labstack/echo" "github.com/labstack/echo"
"github.com/labstack/echo/engine/standard" "github.com/labstack/echo/engine/standard"
"github.com/labstack/echo/middleware" "github.com/labstack/echo/middleware"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
) )
+1 -1
View File
@@ -2,7 +2,7 @@ package main
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
) )
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/go-fsnotify/fsnotify" "github.com/go-fsnotify/fsnotify"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
) )
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync" "sync"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
) )
// GopherInfo contains information about the gopher on screen // GopherInfo contains information about the gopher on screen
+1 -1
View File
@@ -2,7 +2,7 @@ package main
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/olahol/melody" "gopkg.in/olahol/melody.v1"
"net/http" "net/http"
) )