You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,7 +45,7 @@ This command is for cleaning files that are generated by compilers, including th
45
45
46
46
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.
47
47
48
-
## go fmt and gofmt
48
+
## go fmt และ gofmt
49
49
50
50
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.
51
51
@@ -87,7 +87,7 @@ So how do we look up package information in documentation? For instance, if you
87
87
88
88
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.
89
89
90
-
## Other commands
90
+
## คำสั่งอื่นๆ
91
91
92
92
Go provides more commands than those we've just talked about.
93
93
@@ -102,5 +102,5 @@ There are also more details about the commands that I've talked about. You can u
102
102
## Links
103
103
104
104
-[Directory](preface.md)
105
-
-Previous section: [$GOPATH and workspace](01.2.md)
0 commit comments