Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
parsley42 committed Feb 16, 2020
1 parent c96d274 commit 0cf5ed7
Show file tree
Hide file tree
Showing 39 changed files with 54 additions and 53 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Slack API in Go [![GoDoc](https://godoc.org/github.com/nlopes/slack?status.svg)](https://godoc.org/github.com/nlopes/slack) [![Build Status](https://travis-ci.org/nlopes/slack.svg)](https://travis-ci.org/nlopes/slack)
Slack API in Go [![GoDoc](https://godoc.org/github.com/slack-go/slack?status.svg)](https://godoc.org/github.com/slack-go/slack) <!-- [![Build Status](https://travis-ci.org/slack-go/slack.svg)](https://travis-ci.org/slack-go/slack) -->
===============
This is a new fork of the Slack library created by Norberto Lopez, moved to a Github organization.

[![Join the chat at https://gitter.im/go-slack/Lobby](https://badges.gitter.im/go-slack/Lobby.svg)](https://gitter.im/go-slack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Expand All @@ -12,13 +13,13 @@ a fully managed way.

## Changelog

[CHANGELOG.md](https://github.com/nlopes/slack/blob/master/CHANGELOG.md) is available. Please visit it for updates.
[CHANGELOG.md](https://github.com/slack-go/slack/blob/master/CHANGELOG.md) is available. Please visit it for updates.

## Installing

### *go get*

$ go get -u github.com/nlopes/slack
$ go get -u github.com/slack-go/slack

## Example

Expand All @@ -28,7 +29,7 @@ a fully managed way.
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand All @@ -53,7 +54,7 @@ func main() {
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand All @@ -69,12 +70,12 @@ func main() {

## Minimal RTM usage:

See https://github.com/nlopes/slack/blob/master/examples/websocket/websocket.go
See https://github.com/slack-go/slack/blob/master/examples/websocket/websocket.go


## Minimal EventsAPI usage:

See https://github.com/nlopes/slack/blob/master/examples/eventsapi/events.go
See https://github.com/slack-go/slack/blob/master/examples/eventsapi/events.go


## Contributing
Expand Down
2 changes: 1 addition & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"net/url"

"github.com/nlopes/slack/slackutilsx"
"github.com/slack-go/slack/slackutilsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package slack

import "github.com/nlopes/slack/internal/errorsx"
import "github.com/slack-go/slack/internal/errorsx"

// Errors returned by various methods.
const (
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

// The functions below mock the different templates slack has as examples on their website.
Expand Down
2 changes: 1 addition & 1 deletion examples/buttons/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/channels/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/connparams/connparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"os"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/eventsapi/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"net/http"

"github.com/nlopes/slack"
"github.com/nlopes/slack/slackevents"
"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
)

// You more than likely want your "Bot User OAuth Access Token" which starts with "xoxb-"
Expand Down
2 changes: 1 addition & 1 deletion examples/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/groups/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/ims/ims.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/pins/pins.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion examples/reactions/reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/slash/slash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io/ioutil"
"net/http"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stars/stars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (
"strconv"
"time"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
attachment := slack.Attachment{
Color: "good",
Fallback: "You successfully posted by Incoming Webhook URL!",
AuthorName: "nlopes/slack",
AuthorName: "slack-go/slack",
AuthorSubname: "github.com",
AuthorLink: "https://github.com/nlopes/slack",
AuthorLink: "https://github.com/slack-go/slack",
AuthorIcon: "https://avatars2.githubusercontent.com/u/652790",
Text: "<!channel> All text in Slack uses the same system of escaping: chat messages, direct messages, file comments, etc. :smile:\nSee <https://api.slack.com/docs/message-formatting#linking_to_channels_and_users>",
Footer: "slack api",
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nlopes/slack
module github.com/slack-go/slack

go 1.13

Expand All @@ -10,5 +10,3 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.2.2
)

go 1.13
2 changes: 1 addition & 1 deletion misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/nlopes/slack/slackutilsx"
"github.com/slack-go/slack/slackutilsx"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func New(token string, options ...Option) *Client {
token: token,
endpoint: APIURL,
httpclient: &http.Client{},
log: log.New(os.Stderr, "nlopes/slack", log.LstdFlags|log.Lshortfile),
log: log.New(os.Stderr, "slack-go/slack", log.LstdFlags|log.Lshortfile),
}

for _, opt := range options {
Expand Down
2 changes: 1 addition & 1 deletion slackevents/action_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackevents
import (
"encoding/json"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

type MessageActionResponse struct {
Expand Down
4 changes: 3 additions & 1 deletion slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

package slackevents

import "encoding/json"
import (
"encoding/json"
)

// EventsAPIInnerEvent the inner event of a EventsAPI event_callback Event.
type EventsAPIInnerEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"reflect"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

// eventsMap checks both slack.EventsMapping and
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func TestParserOuterCallBackEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slacktest
import (
"fmt"

slack "github.com/nlopes/slack"
slack "github.com/slack-go/slack"
)

const defaultBotName = "TestSlackBot"
Expand Down
2 changes: 1 addition & 1 deletion slacktest/errors.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package slacktest

import (
"github.com/nlopes/slack/internal/errorsx"
"github.com/slack-go/slack/internal/errorsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion slacktest/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

websocket "github.com/gorilla/websocket"
slack "github.com/nlopes/slack"
slack "github.com/slack-go/slack"
)

func (sts *Server) queueForWebsocket(s, hubname string) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

websocket "github.com/gorilla/websocket"
slack "github.com/nlopes/slack"
slack "github.com/slack-go/slack"
)

func contextHandler(server *Server, next http.HandlerFunc) http.Handler {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slacktest
import (
"testing"

slack "github.com/nlopes/slack"
slack "github.com/slack-go/slack"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion slacktest/rtm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion slacktest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"time"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func newMessageChannels() *messageChannels {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion slacktest/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http/httptest"
"sync"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

type contextKey string
Expand Down

0 comments on commit 0cf5ed7

Please sign in to comment.