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 удалений

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

@@ -179,8 +179,7 @@ func TestOutgoingWebhookTriggerWordStartsWith(t *testing.T) {
func TestOutgoingWebhookResponseJson(t *testing.T) {
o := OutgoingWebhookResponse{}
o.Text = new(string)
*o.Text = "some text"
o.Text = NewString("some text")
json := o.ToJson()
ro := OutgoingWebhookResponseFromJson(strings.NewReader(json))