From d2d285b3b24e421c812c0d2bdc3bffea21f5c07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D1=84=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=A0=D1=83=D1=81?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD?= Date: Fri, 5 May 2023 14:58:26 +0300 Subject: [PATCH] fixed code style --- v1/template.go | 18 +++++++++--------- v1/template_test.go | 2 +- v1/types.go | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/v1/template.go b/v1/template.go index 2034dd1..69b7370 100644 --- a/v1/template.go +++ b/v1/template.go @@ -37,15 +37,15 @@ var templateVarAssoc = map[string]interface{}{ // Template struct. type Template struct { - Code string `json:"code"` - ChannelID uint64 `json:"channel_id,omitempty"` - Name string `json:"name"` - Enabled bool `json:"enabled,omitempty"` - Type string `json:"type"` - Template []TemplateItem `json:"template"` - HeaderParams *HeaderParams `json:"headerParams,omitempty"` - Footer *string `json:"footer,omitempty"` - ButtonParams []ButtonParam `json:"buttonParams,omitempty"` + Code string `json:"code"` + ChannelID uint64 `json:"channel_id,omitempty"` + Name string `json:"name"` + Enabled bool `json:"enabled,omitempty"` + Type string `json:"type"` + Template []TemplateItem `json:"template"` + HeaderParams *HeaderParams `json:"headerParams,omitempty"` + Footer *string `json:"footer,omitempty"` + ButtonParams []ButtonParam `json:"buttonParams,omitempty"` } // TemplateItem is a part of template. diff --git a/v1/template_test.go b/v1/template_test.go index 0ebc8ca..7303b8d 100644 --- a/v1/template_test.go +++ b/v1/template_test.go @@ -109,4 +109,4 @@ func TestUnmarshalMediaInteractiveTemplate(t *testing.T) { assert.NoError(t, json.Unmarshal([]byte(input), &template)) assert.Nil(t, template.HeaderParams) assert.Empty(t, template.ButtonParams) -} \ No newline at end of file +} diff --git a/v1/types.go b/v1/types.go index 2a907af..bb11a14 100644 --- a/v1/types.go +++ b/v1/types.go @@ -649,4 +649,4 @@ type ButtonParam struct { ButtonType ButtonType `json:"type"` Text string `json:"text,omitempty"` URLParameter string `json:"urlParameter,omitempty"` -} \ No newline at end of file +}