diff options
author | Corey Hulen <corey@hulen.com> | 2017-02-09 13:39:15 -0800 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-02-09 21:39:15 +0000 |
commit | 1359f7f3918befd2463103379d17bd2eb846654d (patch) | |
tree | f8fe7cbfd7b8a59da7a655f7ac7bbc9233a70258 /api/auto_posts.go | |
parent | 432dc9239fdd27063adcee944675d066fb35cde6 (diff) | |
download | chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.gz chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.bz2 chat-1359f7f3918befd2463103379d17bd2eb846654d.zip |
Adding go vet from hack-a-thon (#5328)
* Adding go vet to the api package
* Adding go vet to app package
* Adding go vet to manualtesting package
* Adding go vet to the model package
* Adding go vet to the store dir
* Adding go vet to utils package
* Adding missing dirs with go files
* Fixing up makefile
* Fixing up makefile
* Removing root dir
Diffstat (limited to 'api/auto_posts.go')
-rw-r--r-- | api/auto_posts.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/auto_posts.go b/api/auto_posts.go index 6b1207c10..bb20aadae 100644 --- a/api/auto_posts.go +++ b/api/auto_posts.go @@ -29,17 +29,17 @@ func NewAutoPostCreator(client *model.Client, channelid string) *AutoPostCreator client: client, channelid: channelid, Fuzzy: false, - TextLength: utils.Range{100, 200}, + TextLength: utils.Range{Begin: 100, End: 200}, HasImage: false, ImageFilenames: TEST_IMAGE_FILENAMES, Users: []string{}, - Mentions: utils.Range{0, 5}, - Tags: utils.Range{0, 7}, + Mentions: utils.Range{Begin: 0, End: 5}, + Tags: utils.Range{Begin: 0, End: 7}, } } func (cfg *AutoPostCreator) UploadTestFile() ([]string, bool) { - filename := cfg.ImageFilenames[utils.RandIntFromRange(utils.Range{0, len(cfg.ImageFilenames) - 1})] + filename := cfg.ImageFilenames[utils.RandIntFromRange(utils.Range{Begin: 0, End: len(cfg.ImageFilenames) - 1})] path := utils.FindDir("web/static/images") file, err := os.Open(path + "/" + filename) |