Skip to content

Commit

Permalink
chore: indent with only two spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Jan 3, 2022
1 parent 22f72a9 commit 2651a6f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions templates/code_go.dot
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package main

import (
"bytes"
"net/http"
"bytes"
"net/http"
)

func main() {
{{?data.allHeaders.length}}
headers := map[string][]string{
{{~data.allHeaders :p:index}}"{{=p.name}}": []string{"{{=p.exampleValues.object}}"},{{?index < data.allHeaders.length-1}}
{{?}}{{~}}
}{{?}}
headers := map[string][]string{
{{~data.allHeaders :p:index}}"{{=p.name}}": []string{"{{=p.exampleValues.object}}"},{{?index < data.allHeaders.length-1}}
{{?}}{{~}}
}{{?}}

data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("{{=data.methodUpper}}", "{{=data.url}}", data)
req.Header = headers
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("{{=data.methodUpper}}", "{{=data.url}}", data)
req.Header = headers

client := &http.Client{}
resp, err := client.Do(req)
client := &http.Client{}
resp, err := client.Do(req)
}

0 comments on commit 2651a6f

Please sign in to comment.