Skip to content

Commit a18d7ff

Browse files
ultroxlpil
authored andcommitted
move imports out of main
I also run this in the editor, so imports are sorted as well. There are few warnings though.
1 parent 9e4d5e3 commit a18d7ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ gleam add gleam_fetch@1 gleam_http
1010
```
1111

1212
```gleam
13-
pub fn main() {
14-
import gleam/fetch
15-
import gleam/http/request
16-
import gleam/http/response
17-
import gleam/javascript/promise
13+
import gleam/fetch
14+
import gleam/http/request
15+
import gleam/http/response
16+
import gleam/javascript/promise
1817
18+
pub fn main() {
1919
let assert Ok(req) = request.to("https://example.com")
2020
2121
// Send the HTTP request to the server

0 commit comments

Comments
 (0)