Skip to content

Commit 52a3a48

Browse files
committed
Translate 01.3
1 parent 2fd3450 commit 52a3a48

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

th/01.3.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# 1.3 Go commands
1+
# 1.3 คำสั่งต่างๆ ของ Go
22

3-
## Go commands
3+
## คำสั่งต่างๆ ของ Go
44

5-
The Go language comes with a complete set of command operation tools. You can execute the `go` command on the terminal to see them:
5+
ภาษา Go นั้นมาพร้อมกับเครื่องมือใช้งานแบบคำสั่ง (command) ที่ครบสมบูรณ์่่้้ เราสามารถสั่งรันคำสั่ง `go` บน terminal เพื่อดูคำสั่งเหล่านั้น:
66

77
![](images/1.3.go.png?raw=true)
88

9-
Figure 1.3 Go command displays detailed information
9+
รูป 1.3 คำสั่ง Go จะแสดงข้อมูลรายละเอียด
1010

11-
These are all useful for us. Let's see how to use some of them.
11+
คำสั่งทั้งหมดนี้เป็นคำสั่งที่มีประโยชน์ทั้งหมด เรามาดูวิธีการใช้งานกัน
1212

1313
## go build
1414

@@ -45,7 +45,7 @@ This command is for cleaning files that are generated by compilers, including th
4545

4646
I usually use this command to clean up my files before I upload my project to Github. These are useful for local tests, but useless for version control.
4747

48-
## go fmt and gofmt
48+
## go fmt และ gofmt
4949

5050
The people who are working with C/C++ should know that people are always arguing about which code style is better: K&R-style or ANSI-style. However in Go, there is only one code style which is enforced. For example, left braces must only be inserted at the end of lines, and they cannot be on their own lines, otherwise you will get compile errors! Fortunately, you don't have to remember these rules. `go fmt` does this job for you. Just execute the command `go fmt <File name>.go` in terminal. I don't use this command very much because IDEs usually execute this command automatically when you save source files. I will talk more about IDEs in the next section.
5151

@@ -87,7 +87,7 @@ So how do we look up package information in documentation? For instance, if you
8787

8888
Execute the `godoc -http=:8080` command, then open `127.0.0.1:8080` in your browser. You should see a localized golang.org. It can not only show the standard packages' information, but also packages in your `$GOPATH/pkg`. It's great for people who are suffering from the Great Firewall of China.
8989

90-
## Other commands
90+
## คำสั่งอื่นๆ
9191

9292
Go provides more commands than those we've just talked about.
9393

@@ -102,5 +102,5 @@ There are also more details about the commands that I've talked about. You can u
102102
## Links
103103

104104
- [Directory](preface.md)
105-
- Previous section: [$GOPATH and workspace](01.2.md)
106-
- Next section: [Go development tools](01.4.md)
105+
- บทก่อนหน้า: [$GOPATH และ workspace](01.2.md)
106+
- บทถัดไป: [เครื่องมือในการพัฒนาของ Go](01.4.md)

th/preface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- 1.[การตั้งค่าสภาพแวดล้อมของ Go](01.0.md)
22
- 1.1. [การติดตั้ง](01.1.md)
33
- 1.2. [$GOPATH และ workspace](01.2.md)
4-
- 1.3. [Go commands](01.3.md)
4+
- 1.3. [คำสั่งต่างๆ ของ Go](01.3.md)
55
- 1.4. [Go development tools](01.4.md)
66
- 1.5. [Summary](01.5.md)
77
- 2.[Go basic knowledge](02.0.md)

0 commit comments

Comments
 (0)