File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/content/docs/zh-tw/docs/quickstart Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,19 @@ sidebar:
33
33
import " net/http"
34
34
` ` `
35
35
36
- 4. 新增你的專案資料夾並 ` cd` 進入
36
+ 4. 新增你的專案資料夾並 ` cd` 進入
37
37
38
38
` ` ` sh
39
39
mkdir -p $GOPATH /src/github.com/myusername/project && cd " $_ "
40
40
` ` `
41
41
42
- 5. 複製範本到你的專案
42
+ 5. 複製範本到你的專案
43
43
44
44
` ` ` sh
45
45
curl https://raw.githubusercontent.com/gin-gonic/examples/master/basic/main.go > main.go
46
46
` ` `
47
47
48
- 6. 執行你的專案
48
+ 6. 執行你的專案
49
49
50
50
` ` ` sh
51
51
go run main.go
@@ -70,13 +70,13 @@ package main
70
70
import " github.com/gin-gonic/gin"
71
71
72
72
func main () {
73
- router := gin.Default ()
74
- router.GET(" /ping" , func(c * gin.Context) {
75
- c.JSON(200, gin.H{
76
- " message" : " pong" ,
77
- })
73
+ router := gin.Default ()
74
+ router.GET(" /ping" , func(c * gin.Context) {
75
+ c.JSON(200, gin.H{
76
+ " message" : " pong" ,
78
77
})
79
- router.Run () // listen and serve on 0.0.0.0:8080
78
+ })
79
+ router.Run () // listen and serve on 0.0.0.0:8080
80
80
}
81
81
` ` `
82
82
You can’t perform that action at this time.
0 commit comments