Skip to content

Commit

Permalink
write to file
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Feb 10, 2020
1 parent 546f51e commit d97dd35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ func main() {
}

t := template.Must(template.New("apigw").Parse(apiGWConf))
err := t.Execute(os.Stdout, apiTmpl)
file, err := os.Create("apigw.yml")
if err != err {
panic(err)
}
err = t.Execute(file, apiTmpl)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d97dd35

Please sign in to comment.