From 647ca280c6fb10de56f5d17654f00b3a63b48dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Holmstr=C3=B6m?= Date: Tue, 11 Apr 2017 22:35:19 +0200 Subject: [PATCH] Update README and examples to use gopkg.in import. --- README.md | 8 ++++---- examples/chat-echo/main.go | 2 +- examples/chat/main.go | 2 +- examples/filewatch/main.go | 2 +- examples/gophers/main.go | 2 +- examples/multichat/main.go | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5d132ee..cdddf7e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ your way so you can write real-time apps. Features include: ## Install ```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) @@ -32,7 +32,7 @@ package main import ( "github.com/gin-gonic/gin" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" ) @@ -64,7 +64,7 @@ import ( "github.com/labstack/echo" "github.com/labstack/echo/engine/standard" "github.com/labstack/echo/middleware" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" ) @@ -102,7 +102,7 @@ package main import ( "github.com/gin-gonic/gin" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" "strconv" "strings" diff --git a/examples/chat-echo/main.go b/examples/chat-echo/main.go index d58ad05..6cb8540 100644 --- a/examples/chat-echo/main.go +++ b/examples/chat-echo/main.go @@ -4,7 +4,7 @@ import ( "github.com/labstack/echo" "github.com/labstack/echo/engine/standard" "github.com/labstack/echo/middleware" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" ) diff --git a/examples/chat/main.go b/examples/chat/main.go index 8030926..bfb47bc 100644 --- a/examples/chat/main.go +++ b/examples/chat/main.go @@ -2,7 +2,7 @@ package main import ( "github.com/gin-gonic/gin" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" ) diff --git a/examples/filewatch/main.go b/examples/filewatch/main.go index 334a304..347ca27 100644 --- a/examples/filewatch/main.go +++ b/examples/filewatch/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/gin-gonic/gin" "github.com/go-fsnotify/fsnotify" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "io/ioutil" "net/http" ) diff --git a/examples/gophers/main.go b/examples/gophers/main.go index 80fa751..8cfa6e8 100644 --- a/examples/gophers/main.go +++ b/examples/gophers/main.go @@ -7,7 +7,7 @@ import ( "sync" "github.com/gin-gonic/gin" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" ) // GopherInfo contains information about the gopher on screen diff --git a/examples/multichat/main.go b/examples/multichat/main.go index 13a97c4..e3e3924 100644 --- a/examples/multichat/main.go +++ b/examples/multichat/main.go @@ -2,7 +2,7 @@ package main import ( "github.com/gin-gonic/gin" - "github.com/olahol/melody" + "gopkg.in/olahol/melody.v1" "net/http" )