GO-0002
原文
Getting Started
Installing Go¶
Instructions for downloading and installing Go.
Tutorial: Getting started¶
A brief Hello, World tutorial to get started. Learn a bit about Go code, tools, packages, and modules.
Tutorial: Create a module¶
A tutorial of short topics introducing functions, error handling, arrays, maps, unit testing, and compiling.
Tutorial: Getting started with multi-module workspaces¶
Introduces the basics of creating and using multi-module workspaces in Go. Multi-module workspaces are useful for making changes across multiple modules.
Tutorial: Developing a RESTful API with Go and Gin¶
Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework.
Tutorial: Getting started with generics¶
With generics, you can declare and use functions or types that are written to work with any of a set of types provided by calling code.
Tutorial: Getting started with fuzzing¶
Fuzzing can generate inputs to your tests that can catch edge cases and security issues that you may have missed.
Writing Web Applications¶
Building a simple web application.
How to write Go code¶
This doc explains how to develop a simple set of Go packages inside a module, and it shows how to use the go command to build and test packages.
A Tour of Go¶
An interactive introduction to Go in four sections. The first section covers basic syntax and data structures; the second discusses methods and interfaces; the third is about Generics; and the fourth introduces Go's concurrency primitives. Each section concludes with a few exercises so you can practice what you've learned. You can take the tour online or install it locally with:
$ go install golang.org/x/website/tour@latest
This will place the tour binary in your GOPATH's bin directory.
以下是对您提供的 IT 技术英文文档的完整处理,严格遵循您提出的三项要求及排版规范。
1. 全文专业翻译(英译汉)
入门指南
安装 Go
下载并安装 Go 的操作说明。
教程:快速入门
一个简短的“Hello, World”教程,助您快速上手。您将初步了解 Go 代码、工具、包(packages)和模块(modules)。
教程:创建一个模块
本教程通过一系列简短主题,介绍函数、错误处理、数组、映射(maps)、单元测试以及编译等核心概念。
教程:多模块工作区入门
介绍在 Go 中创建和使用多模块工作区的基础知识。多模块工作区适用于需要跨多个模块进行修改的场景。
教程:使用 Go 和 Gin 开发 RESTful API
介绍如何使用 Go 语言与 Gin Web 框架编写 RESTful Web 服务 API 的基础知识。
教程:泛型入门
借助泛型,您可以声明并使用那些能够与调用方所提供的任意一组类型协同工作的函数或类型。
教程:模糊测试(Fuzzing)入门
模糊测试可为您的测试生成输入数据,从而发现您可能遗漏的边界情况和安全漏洞。
编写 Web 应用程序
构建一个简单的 Web 应用程序。
如何编写 Go 代码
本文档说明如何在一个模块内开发一组简单的 Go 包,并演示如何使用 go 命令构建和测试这些包。
Go 语言之旅
这是一份分为四个部分的交互式 Go 语言入门教程。第一部分涵盖基本语法和数据结构;第二部分讨论方法与接口;第三部分讲解泛型;第四部分介绍 Go 的并发原语。每个部分末尾均包含若干练习题,供您巩固所学内容。您既可在线体验该教程,也可通过以下命令在本地安装:
$ go install golang.org/x/website/tour@latest
该命令会将 tour 可执行文件安装到您的 GOPATH 的 bin 目录中。
2. 词汇表梳理
本次共收获单词:49 个
| 序号 | 单词 | 词性 | 音标 | 拼读 | 释义 |
|---|---|---|---|---|---|
| 1 | Getting | 动词(get 的现在分词) | /ˈɡetɪŋ/ /ˈɡɛtɪŋ/ | Get-ting 盖亭 | 获得,开始(此处为标题用法,表示“入门”) |
| 2 | Started | 动词(start 的过去分词) | /ˈstɑːtɪd/ /ˈstɑːrtɪd/ | Start-ed 斯塔亭 | 开始(此处用于构成完成体或被动语态) |
| 3 | Installing | 动词(install 的现在分词) | /ɪnˈstɔːlɪŋ/ /ɪnˈstɔːlɪŋ/ | In-stall-ing 因斯托林 | 安装(软件、系统等) |
| 4 | Go | 专有名词(编程语言名称) | /ɡəʊ/ /ɡoʊ/ | Go 够 | Google 开发的开源编程语言,正式名称为 Golang |
| 5 | Instructions | 名词(instruction 的复数) | /ɪnˈstrʌkʃnz/ /ɪnˈstrʌkʃənz/ | In-struc-tions 因斯特拉克申兹 | 操作说明,指令集 |
| 6 | Downloading | 动词(download 的现在分词) | /ˌdaʊnˈləʊdɪŋ/ /ˌdaʊnˈloʊdɪŋ/ | Down-load-ing 当楼丁 | 下载(数据或软件) |
| 7 | Tutorial | 名词 | /ˌtjuːˈtɔːriəl/ /ˌtuːˈtɔːriəl/ | Tu-to-ri-al 图托瑞欧 | 教程,指导性学习材料 |
| 8 | Brief | 形容词 | /briːf/ /briːf/ | Brief 布瑞夫 | 简短的,简洁的 |
| 9 | Hello | 感叹词 / 名词 | /həˈləʊ/ /həˈloʊ/ | Hel-lo 哈喽 | 问候语;在编程中特指经典入门程序 “Hello, World” |
| 10 | World | 名词 | /wɜːld/ /wɜːrld/ | World 沃德 | 世界;在 “Hello, World” 中为固定搭配 |
| 11 | Tools | 名词(tool 的复数) | /tuːlz/ /tuːlz/ | Tools 图兹 | 工具(如编译器、调试器等开发工具) |
| 12 | Packages | 名词(package 的复数) | /ˈpækɪdʒɪz/ /ˈpækɪdʒɪz/ | Pack-a-ges 帕克吉兹 | (Go)包,代码组织的基本单元 |
| 13 | Modules | 名词(module 的复数) | /ˈmɒdjuːlz/ /ˈmɑːdʒuːlz/ | Mod-u-les 莫丢兹 | (Go)模块,版本化的代码单元,包含一个或多个包 |
| 14 | Create | 动词 | /kriˈeɪt/ /kriˈeɪt/ | Cre-ate 克瑞特 | 创建 |
| 15 | Functions | 名词(function 的复数) | /ˈfʌŋkʃnz/ /ˈfʌŋkʃənz/ | Func-tions 方克申兹 | (编程)函数,执行特定任务的代码块 |
| 16 | Error | 名词 | /ˈerə(r)/ /ˈerər/ | Er-ror 爱若 | 错误;(Go)显式错误处理机制中的 error 类型 |
| 17 | Handling | 名词(handle 的动名词) | /ˈhændlɪŋ/ /ˈhændlɪŋ/ | Han-dling 汉丁 | 处理(如错误处理、事件处理) |
| 18 | Arrays | 名词(array 的复数) | /əˈreɪz/ /əˈreɪz/ | Ar-rays 艾瑞兹 | (编程)数组,固定长度的同类型元素序列 |
| 19 | Maps | 名词(map 的复数) | /mæps/ /mæps/ | Maps 麦普兹 | (Go)映射,键值对集合,类似其他语言的字典或哈希表 |
| 20 | Unit | 名词 | /ˈjuːnɪt/ /ˈjuːnɪt/ | U-nit 尤尼特 | 单元;(测试)单元测试(unit testing)中的最小测试单位 |
| 21 | Testing | 名词(test 的动名词) | /ˈtestɪŋ/ /ˈtestɪŋ/ | Test-ing 泰斯汀 | 测试;软件验证过程 |
| 22 | Compiling | 动词(compile 的现在分词) | /kəmˈpaɪlɪŋ/ /kəmˈpaɪlɪŋ/ | Com-pil-ing 康派林 | 编译,将源代码转换为机器码 |
| 23 | Multi-module | 复合形容词 | /ˌmʌlti ˈmɒdjuːl/ /ˌmʌlti ˈmɑːdʒuːl/ | Mul-ti-mod-u-le 马尔蒂莫丢 | 多模块的,涉及多个 Go 模块 |
| 24 | Workspaces | 名词(workspace 的复数) | /ˈwɜːkspesɪz/ /ˈwɜːrkspeɪsɪz/ | Work-spac-es 沃克斯佩斯兹 | 工作区,开发者组织项目的目录结构 |
| 25 | Useful | 形容词 | /ˈjuːsfl/ /ˈjuːsfl/ | Use-ful 尤斯夫 | 有用的 |
| 26 | Changes | 名词(change 的复数) | /tʃeɪndʒɪz/ /tʃeɪndʒɪz/ | Chan-ges 陈吉兹 | 更改,修改 |
| 27 | RESTful | 形容词 | /ˈrestfʊl/ /ˈrestfʊl/ | Rest-ful 瑞斯特夫 | 符合 REST 架构风格的(Representational State Transfer) |
| 28 | API | 名词(缩写) | /ˌeɪ piː ˈaɪ/ /ˌeɪ piː ˈaɪ/ | A-P-I 埃皮爱 | 应用程序编程接口(Application Programming Interface) |
| 29 | Framework | 名词 | /ˈfreɪmwɜːk/ /ˈfreɪmwɜːrk/ | Frame-work 弗雷姆沃克 | 框架,提供基础结构的软件平台 |
| 30 | Generics | 名词(generic 的复数形式,此处作不可数名词) | /ˈdʒenərɪks/ /ˈdʒenərɪks/ | Gen-er-ics 杰内瑞克兹 | (编程)泛型,允许类型参数化的特性 |
| 31 | Declare | 动词 | /dɪˈkleə(r)/ /dɪˈkler/ | De-clare 迪克莱尔 | 声明(变量、函数、类型等) |
| 32 | Types | 名词(type 的复数) | /taɪps/ /taɪps/ | Types 泰普兹 | (编程)类型,如 int、string 或自定义类型 |
| 33 | Fuzzing | 名词 | /ˈfʌzɪŋ/ /ˈfʌzɪŋ/ | Fuzz-ing 发兹丁 | 模糊测试,一种自动化测试技术,通过生成随机输入发现漏洞 |
| 34 | Generate | 动词 | /ˈdʒenəreɪt/ /ˈdʒenəreɪt/ | Gen-er-ate 杰内瑞特 | 生成 |
| 35 | Inputs | 名词(input 的复数) | /ˈɪnpʊts/ /ˈɪnpʊts/ | In-puts 因普兹 | 输入(数据) |
| 36 | Catch | 动词 | /kætʃ/ /kætʃ/ | Catch 凯奇 | 捕获(错误、异常、漏洞) |
| 37 | Edge | 名词 | /edʒ/ /edʒ/ | Edge 埃吉 | 边缘;(测试)边界情况(edge case) |
| 38 | Security | 名词 | /sɪˈkjʊərəti/ /səˈkjʊrəti/ | Se-cu-ri-ty 西库若替 | 安全性 |
| 39 | Writing | 动词(write 的现在分词) | /ˈraɪtɪŋ/ /ˈraɪtɪŋ/ | Writ-ing 赖丁 | 编写(代码、文档) |
| 40 | Web | 形容词 / 名词 | /web/ /web/ | Web 韦伯 | 万维网的;Web 应用 |
| 41 | Applications | 名词(application 的复数) | /ˌæplɪˈkeɪʃnz/ /ˌæplɪˈkeɪʃnz/ | Ap-pli-ca-tions 阿普列开申兹 | 应用程序 |
| 42 | Simple | 形容词 | /ˈsɪmpl/ /ˈsɪmpl/ | Sim-ple 辛普尔 | 简单的 |
| 43 | Develop | 动词 | /dɪˈveləp/ /dɪˈveləp/ | De-vel-op 迪维洛普 | 开发 |
| 44 | Set | 名词 / 动词 | /set/ /set/ | Set 赛特 | 集合;一套(如 a set of packages) |
| 45 | Command | 名词 | /kəˈmɑːnd/ /kəˈmænd/ | Com-mand 卡曼德 | 命令(如 shell 命令、go 命令) |
| 46 | Tour | 名词 | /tʊə(r)/ /tʊr/ | Tour 图尔 | (Go)官方交互式教程 “A Tour of Go” |
| 47 | Binary | 名词 / 形容词 | /ˈbaɪnəri/ /ˈbaɪnəri/ | Bi-na-ry 拜那瑞 | (IT)二进制文件,即可执行程序 |
| 48 | Discuss | 动词 | /dɪˈskʌs/ | Dis-cuss 迪斯卡思 | 讨论,探讨。在技术文档或协作开发语境中,指就某个主题(如设计、问题、方案)进行正式或非正式的交流与分析。 |
| 49 | Interactive | 形容词 | /ˌɪntərˈæktɪv/ | In-ter-ac-tive 因特拉克提夫 | 交互式的。指程序、系统或用户界面能够实时响应用户输入,并在操作过程中持续进行双向通信;在开发工具或命令行环境中,常表示“可与用户对话”的模式。 |

浙公网安备 33010602011771号