Translate 01.0
This commit is contained in:
23
th/01.0.md
23
th/01.0.md
@@ -1,20 +1,21 @@
|
||||
# 1 Go Environment Configuration
|
||||
# 1 การตั้งค่าสภาพแวดล้อมของ Go
|
||||
|
||||
Welcome to the world of Go, let's start exploring!
|
||||
ยินดีต้อนรับสู่โลกของ Go, เรามาเริ่มต้นกันเลย!
|
||||
|
||||
Go is a fast-compiled, garbage-collected, concurrent systems programming language. It has the following advantages:
|
||||
Go เป็นภาษาประเภทคอมไพล์ที่ทำงานได้อย่างรวดเร็ว มีระบบ garbage collection สนับสนุนระบบ concurrent ซึ่งทำให้เกิดข้อได้เปรียบกว่าภาษาอื่น ดังนี้:
|
||||
|
||||
- Compiles a large project within a few seconds.
|
||||
- Provides a software development model that is easy to reason about, avoiding most of the problems associated with C-style header files.
|
||||
- Is a static language that does not have levels in its type system, so users do not need to spend much time dealing with relations between types. It is more like a lightweight object-oriented language.
|
||||
- Performs garbage collection. It provides basic support for concurrency and communication.
|
||||
- Designed for multi-core computers.
|
||||
- คอมไพล์โปรเจ็คขนาดใหญ่ได้ในเวลาไม่กี่วินาที
|
||||
- จัดเตรียมรูปแบบในการพัฒนาซอฟท์แวร์แบบที่เข้าใจได้ง่าย โดยหลีกเลี่ยงปัญหาที่เกิดกับ header files ในภาษาซี
|
||||
- เป็นภาษาประเภท static ที่ไม่ได้มี levels ในระบบชนิดข้อมูล (type) ทำให้ผู้ใช้ไม่จำเป็นต้องเสียเวลาในการจัดการกับความสัมพันธ์ระหว่างชนิดข้อมูล (type) ซึ่งอันที่จริงแล้วก็คล้ายกับเป็นภาษาแบบ object-oriented ชนิดกลายๆ นั่นเอง
|
||||
- มี garbage collection และสนับสนุนการทำ concurrency และการสื่อสาร
|
||||
- ออกแบบมาเพื่อรองรับกับคอมพิวเตอร์แบบหลายคอร์ (multi-core computers)
|
||||
|
||||
Go is a compiled language. It combines the development efficiency of interpreted or dynamic languages with the security of static languages. It is going to be the language of choice for modern, multi-core computers with networking. For these purposes, there are some problems that need to inherently be resolved at the level of the language of choice, such as a richly expressive lightweight type system, a native concurrency model, and strictly regulated garbage collection. For quite some time, no packages or tools have emerged that have aimed to solve all of these problems in a pragmatic fashion; thus was born the motivation for the Go language.
|
||||
Go เป็นภาษาประเภทที่ต้องคอมไพล์ ซึ่งได้หลอมรวมประสิทธิภาพในการพัฒนาของภาษาที่ทำงานในแบบ interpreter หรือเรียกอีกอย่างหนึ่งว่าภาษาแบบ dynamic กับความปลอดภัยในแบบของภาษา static เอาไว้ด้วยกัน นับเป็นทางเลือกในการพัฒนาสำหรับคอมพิวเตอร์สมัยใหม่ที่ทำงานแบบหลายคอร์ (multi-core) และเชื่อมต่อกันด้วยระบบเครือข่าย และจากเป้าหมายที่กล่าวมานี้จึงมีปัญหาบางอย่างที่จำเป็นต้องแก้ในระดับของภาษาเอง ยกตัวอย่างเช่น การสนับสนุนรูปแบบชนิดข้อมูลแบบเบา (lightweight type), สนับสนุนรูปแบบการทำงานแบบ concurrency ในตัวเอง และมีการทำ garbage collection ที่ถูกควบคุมอย่างเคร่งครัด
|
||||
ซึ่งเป็นเวลาระยะหนึ่งแล้วที่ไม่มี packages หรือเครื่องมือที่ออกแบบมาเพื่อแก้ปัญหาเหล่านี้อย่างจริงจังในทางปฎิบัติ นี่จึงเป็นที่มาของแรงบันดาลใจในการสร้างภาษา Go ขึ้นมา
|
||||
|
||||
In this chapter, I will show you how to install and configure your own Go development environment.
|
||||
ในบทนี้, ผมจะแสดงการติดตั้งและการตั้งค่าสภาพแวดล้อมในการพัฒนาของ Go
|
||||
|
||||
## Links
|
||||
|
||||
- [Directory](preface.md)
|
||||
- Next section: [Installation](01.1.md)
|
||||
- บทถัดไป: [การติดตั้ง](01.1.md)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- 1.[Go environment configuration](01.0.md)
|
||||
- 1.[การตั้งค่าสภาพแวดล้อมของ Go](01.0.md)
|
||||
- 1.1. [Installation](01.1.md)
|
||||
- 1.2. [$GOPATH and workspace](01.2.md)
|
||||
- 1.3. [Go commands](01.3.md)
|
||||
@@ -93,4 +93,4 @@
|
||||
- 14.5. [Multi-language support](14.5.md)
|
||||
- 14.6. [pprof](14.6.md)
|
||||
- 14.7. [Summary](14.7.md)
|
||||
- Appendix A [References](ref.md)
|
||||
- Appendix A [References](ref.md)
|
||||
|
||||
Reference in New Issue
Block a user