Skip to content

Commit 0ec3a22

Browse files
committed
๐Ÿ”ง modify
1 parent 8d84546 commit 0ec3a22

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

โ€ŽImage/normalHttpServer00.png

27.3 KB
Loading

โ€ŽREADME.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,19 @@ Hello world
374374
```
375375
376376
... if ๋ฌธ์„ ๋งŽ์ด ์จ์•ผ ๋˜๋Š” ๋ถ€๋ถ„์ด ์•„์‰ฝ๋„ค์š”.
377-
378-
3. ์–ธ์ œํ•˜์ง€? ์‹œ๊ฐ„์ด ๋˜๋ฉด ์…ˆํ”Œ์„ ์ถ”๊ฐ€ํ•ด๋ณด์ž~
377+
378+
3. ์ดˆ๊ฐ„๋‹จ HTTP ์„œ๋ฒ„
379+
1. source : normal/httpServer/[main.go](https://github.com/ClintJang/go-study/blob/master/sample/src/normal/httpServer/main.go)
380+
2. result : httpServer ํด๋”์—์„œ main.go๋ฅผ runํ•ฉ๋‹ˆ๋‹ค.
381+
```
382+
fileAndDir $ go run main.go
383+
_
384+
(์ปค์„œ ๋Œ€๊ธฐ์ค‘, ์ด์ œ ์›น ๋ธŒ๋ผ์šฐ์ €์— "localhost:9999" ๋ฅผ ์ณ๋ณด์„ธ์š”)
385+
```
386+
3. ๊ฐ„๋‹จํ•œ ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰๋ฌ์Šต๋‹ˆ๋‹ค. (Http Server๋ฅผ ๋‹ซ์œผ๋ ค๋ฉด control + c)
387+
4. ์„œ๋ฒ„ ์‹คํ–‰ : http://localhost:9999
388+
<img width="444" height="166" src="/Image/normalHttpServer00.png">
389+
4. ์–ธ์ œํ•˜์ง€? ์‹œ๊ฐ„์ด ๋˜๋ฉด ์…ˆํ”Œ์„ ์ถ”๊ฐ€ํ•ด๋ณด์ž~
379390
380391
## Advanced Sample Code
381392
> ์‹ค์ œ ์‚ฌ์šฉํ• ๋งŒ ํ•œ๊ฒƒ์€?

0 commit comments

Comments
ย (0)