add model.NewX funcs for builtin types (#7692)

* add model.NewX funcs for builtin types

* whoops, forgot to add the new file
Этот коммит содержится в:
Chris
2017-10-23 09:40:35 -07:00
коммит произвёл GitHub
родитель 08b7b1c414
Коммит 78a9774147
10 изменённых файлов: 242 добавлений и 466 удалений

Просмотреть файл

@@ -307,8 +307,7 @@ func testCreatePostWithOutgoingHook(
}
resp := &model.OutgoingWebhookResponse{}
resp.Text = new(string)
*resp.Text = "some test text"
resp.Text = model.NewString("some test text")
resp.Username = "testusername"
resp.IconURL = "http://www.mattermost.org/wp-content/uploads/2016/04/icon.png"
resp.Props = map[string]interface{}{"someprop": "somevalue"}