Skip to content

Commit 089f1ba

Browse files
committed
examples/http-post: fixes 'newline redundant' validation
1 parent cb98aa4 commit 089f1ba

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

examples/http-post/main.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,36 @@ func main() {
3434
}
3535
})
3636

37-
fmt.Println("Now server is running on port 8080\n")
37+
fmt.Println("Now server is running on port 8080")
38+
39+
fmt.Println("")
3840

3941
fmt.Println(`Get single todo:
4042
curl \
4143
-X POST \
4244
-H "Content-Type: application/json" \
4345
--data '{ "query": "{ todo(id:\"b\") { id text done } }" }' \
44-
http://localhost:8080/graphql
45-
`)
46+
http://localhost:8080/graphql`)
47+
48+
fmt.Println("")
4649

4750
fmt.Println(`Create new todo:
4851
curl \
4952
-X POST \
5053
-H "Content-Type: application/json" \
5154
--data '{ "query": "mutation { createTodo(text:\"My New todo\") { id text done } }" }' \
52-
http://localhost:8080/graphql
53-
`)
55+
http://localhost:8080/graphql`)
56+
57+
fmt.Println("")
5458

5559
fmt.Println(`Update todo:
5660
curl \
5761
-X POST \
5862
-H "Content-Type: application/json" \
5963
--data '{ "query": "mutation { updateTodo(id:\"a\", done: true) { id text done } }" }' \
60-
http://localhost:8080/graphql
61-
`)
64+
http://localhost:8080/graphql`)
65+
66+
fmt.Println("")
6267

6368
fmt.Println(`Load todo list:
6469
curl \

0 commit comments

Comments
 (0)