From 1359f7f3918befd2463103379d17bd2eb846654d Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 9 Feb 2017 13:39:15 -0800 Subject: 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 --- api/auto_posts.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'api/auto_posts.go') 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) -- cgit v1.2.3-1-g7c22