Browse Source

Update README and examples to use gopkg.in import.

master
Ola Holmström 8 years ago
parent
commit
647ca280c6
  1. 8
      README.md
  2. 2
      examples/chat-echo/main.go
  3. 2
      examples/chat/main.go
  4. 2
      examples/filewatch/main.go
  5. 2
      examples/gophers/main.go
  6. 2
      examples/multichat/main.go

8
README.md

@ -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"

2
examples/chat-echo/main.go

@ -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"
) )

2
examples/chat/main.go

@ -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"
) )

2
examples/filewatch/main.go

@ -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"
) )

2
examples/gophers/main.go

@ -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

2
examples/multichat/main.go

@ -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"
) )

Loading…
Cancel
Save