Add package that fixes parsing error

This commit is contained in:
erroneousboat 2016-10-01 14:07:42 +02:00
parent 418593b0ef
commit ad4004fb63
8 changed files with 17 additions and 8 deletions

View File

@ -16,7 +16,7 @@ Bugs:
of chat pane (y). Because message will sometimes span more than one
line and we're able to scroll. Only figure out how many messages you
want to load.
- [ ] GetMessages for a channel can result in `json: cannot unmarshal number
- [x] GetMessages for a channel can result in `json: cannot unmarshal number
into Go value of type string` https://github.com/nlopes/slack/issues/92
- [ ] docs at exported functions
- [ ] incoming message event.go probably need a type switch

View File

@ -4,8 +4,9 @@ import (
"fmt"
"strings"
"github.com/erroneousboat/slack-term/src/service"
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
)
type Channels struct {

View File

@ -3,8 +3,9 @@ package components
import (
"strings"
"github.com/erroneousboat/slack-term/src/service"
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
)
type Chat struct {

View File

@ -1,8 +1,9 @@
package components
import (
"github.com/erroneousboat/slack-term/src/service"
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
)
// Input is the definition of and input box

View File

@ -1,8 +1,8 @@
package handlers
import (
"github.com/erroneousboat/slack"
"github.com/gizak/termui"
"github.com/nlopes/slack"
"github.com/erroneousboat/slack-term/src/context"
"github.com/erroneousboat/slack-term/src/views"

View File

@ -6,7 +6,7 @@ import (
"strconv"
"time"
"github.com/nlopes/slack"
"github.com/erroneousboat/slack"
)
type SlackService struct {

View File

@ -2,6 +2,12 @@
"comment": "",
"ignore": "test",
"package": [
{
"checksumSHA1": "2xFMeuNz5+Q/Zoj4UB7VLVEUUBg=",
"path": "github.com/erroneousboat/slack",
"revision": "bffff62454d1f96706a775078228eb4313863cf2",
"revisionTime": "2016-10-01T12:00:35Z"
},
{
"checksumSHA1": "h3TS3NxvpHvzwUysrtqVu2BntAE=",
"path": "github.com/gizak/termui",

View File

@ -1,10 +1,10 @@
package views
import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/components"
"github.com/erroneousboat/slack-term/src/service"
"github.com/gizak/termui"
)
type View struct {