fix: update code to be compatible with go vet

* emojifyme: added quotes to alias json
...
This commit is contained in:
Chris Sexton 2017-10-19 14:11:19 -04:00
parent e45b85c7b2
commit 4e82adcf0a
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ func New(bot bot.Bot) *EmojifyMePlugin {
}
type Emoji struct {
Aliases []string `json:aliases`
Aliases []string `json:"aliases"`
}
var emoji []Emoji

View File

@ -49,7 +49,7 @@ func (p *ZorkPlugin) runZork(ch string) error {
var w io.WriteCloser
cmd.Stdin, w = io.Pipe()
log.Printf("zork running %s\n", cmd)
log.Printf("zork running %v\n", cmd)
if err := cmd.Start(); err != nil {
w.Close()
return err

View File

@ -228,8 +228,8 @@ func (s *Slack) populateEmojiList() {
}
type EmojiListResponse struct {
OK bool `json:ok`
Emoji map[string]string `json:emoji`
OK bool `json:"ok"`
Emoji map[string]string `json:"emoji"`
}
var list EmojiListResponse