From 6baf05b22ade4f2ae805860b6718f4ab7e0592c0 Mon Sep 17 00:00:00 2001 From: Bismo Baruno Date: Sat, 20 Jun 2020 06:40:04 +0700 Subject: [PATCH] fix typo on readme and godoc --- README.md | 2 +- terraform/template.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff004d1..cca9b85 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ $ go get -u github.com/mercari/tfnotify 2. Bind parsed results to Go templates 3. Notify it to any platform (e.g. GitHub) as you like -Detailed specifications such as templates and notification destinations can be customized from the configration files (described later). +Detailed specifications such as templates and notification destinations can be customized from the configuration files (described later). ## Usage diff --git a/terraform/template.go b/terraform/template.go index 490b946..0126acb 100644 --- a/terraform/template.go +++ b/terraform/template.go @@ -219,7 +219,7 @@ func generateOutput(kind, template string, data map[string]interface{}, useRawOu return b.String(), nil } -// Execute binds the execution result of terraform command into tepmlate +// Execute binds the execution result of terraform command into template func (t *DefaultTemplate) Execute() (string, error) { data := map[string]interface{}{ "Title": t.Title, @@ -237,7 +237,7 @@ func (t *DefaultTemplate) Execute() (string, error) { return resp, nil } -// Execute binds the execution result of terraform fmt into tepmlate +// Execute binds the execution result of terraform fmt into template func (t *FmtTemplate) Execute() (string, error) { data := map[string]interface{}{ "Title": t.Title, @@ -255,7 +255,7 @@ func (t *FmtTemplate) Execute() (string, error) { return resp, nil } -// Execute binds the execution result of terraform plan into tepmlate +// Execute binds the execution result of terraform plan into template func (t *PlanTemplate) Execute() (string, error) { data := map[string]interface{}{ "Title": t.Title, @@ -291,7 +291,7 @@ func (t *DestroyWarningTemplate) Execute() (string, error) { return resp, nil } -// Execute binds the execution result of terraform apply into tepmlate +// Execute binds the execution result of terraform apply into template func (t *ApplyTemplate) Execute() (string, error) { data := map[string]interface{}{ "Title": t.Title,