From 89a5b20ba12ea17a2458e155916b5019707bf6d3 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sun, 1 Sep 2019 22:37:36 +0800 Subject: [PATCH 1/4] PRF @hello-wn --- .../20190821 Getting Started with Go on Fedora.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/translated/tech/20190821 Getting Started with Go on Fedora.md b/translated/tech/20190821 Getting Started with Go on Fedora.md index f8f9fc3d82..bd30099239 100644 --- a/translated/tech/20190821 Getting Started with Go on Fedora.md +++ b/translated/tech/20190821 Getting Started with Go on Fedora.md @@ -1,6 +1,6 @@ [#]: collector: "lujun9972" [#]: translator: "hello-wn" -[#]: reviewer: " " +[#]: reviewer: "wxy" [#]: publisher: " " [#]: url: " " [#]: subject: "Getting Started with Go on Fedora" @@ -12,7 +12,7 @@ ![][1] -[Go][2] 编程语言于 2009 年首次公开发布,此后被广泛使用。特别是,Go 已经成为云基础设施领域的一种代表性语言,例如 [Kubernetes][3] 、 [OpenShift][4] 或 [Terraform][5] 等大型项目都使用了 Go。 +[Go][2] 编程语言于 2009 年首次公开发布,此后被广泛使用。特别是,Go 已经成为云基础设施领域的一种代表性语言,例如 [Kubernetes][3]、[OpenShift][4] 或 [Terraform][5] 等大型项目都使用了 Go。 Go 越来越受欢迎的原因是性能好、易于编写高并发的程序、语法简单和编译快。 @@ -27,6 +27,7 @@ $ sudo dnf install -y golang $ go version go version go1.12.7 linux/amd64 ``` + 既然装好了 Go ,让我们来写个简单的程序,编译并运行。 ### 第一个 Go 程序 @@ -50,7 +51,7 @@ $ go run main.go Hello, World! ``` -Go 会在临时目录将 `main.go` 编译成二进制文件并执行,然后删除临时目录。 这个命令非常适合在开发过程中快速运行程序,它还突显了 Go 的编译速度。 +Go 会在临时目录将 `main.go` 编译成二进制文件并执行,然后删除临时目录。这个命令非常适合在开发过程中快速运行程序,它还凸显了 Go 的编译速度。 编译一个可执行程序就像运行它一样简单。 @@ -62,7 +63,7 @@ Hello, World! ### 使用 Go 的模块 -Go 1.11 和 1.12 引入了对模块的初步支持。模块可用于管理应用程序的各种依赖包。 Go 通过 `go.mod` 和 `go.sum` 这两个文件,显式地定义依赖包的版本。 +Go 1.11 和 1.12 引入了对模块的初步支持。模块可用于管理应用程序的各种依赖包。Go 通过 `go.mod` 和 `go.sum` 这两个文件,显式地定义依赖包的版本。 为了演示如何使用模块,让我们为 `hello world` 程序添加一个依赖。 @@ -105,7 +106,7 @@ via: https://fedoramagazine.org/getting-started-with-go-on-fedora/ 作者:[Clément Verna][a] 选题:[lujun9972][b] 译者:[hello-wn](https://github.com/hello-wn) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 From 4d5e5153c7a81f6441d94b35607b9797991819a2 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sun, 1 Sep 2019 22:38:05 +0800 Subject: [PATCH 2/4] PUB @hello-wn https://linux.cn/article-11293-1.html --- .../20190821 Getting Started with Go on Fedora.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {translated/tech => published}/20190821 Getting Started with Go on Fedora.md (97%) diff --git a/translated/tech/20190821 Getting Started with Go on Fedora.md b/published/20190821 Getting Started with Go on Fedora.md similarity index 97% rename from translated/tech/20190821 Getting Started with Go on Fedora.md rename to published/20190821 Getting Started with Go on Fedora.md index bd30099239..25cff871be 100644 --- a/translated/tech/20190821 Getting Started with Go on Fedora.md +++ b/published/20190821 Getting Started with Go on Fedora.md @@ -1,8 +1,8 @@ [#]: collector: "lujun9972" [#]: translator: "hello-wn" [#]: reviewer: "wxy" -[#]: publisher: " " -[#]: url: " " +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-11293-1.html" [#]: subject: "Getting Started with Go on Fedora" [#]: via: "https://fedoramagazine.org/getting-started-with-go-on-fedora/" [#]: author: "Clément Verna https://fedoramagazine.org/author/cverna/" From 88621f089bc9d54163920a9905d39b0518e4d6db Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sun, 1 Sep 2019 23:02:48 +0800 Subject: [PATCH 3/4] PRF @lujun9972 --- .../tech/20190524 Spell Checking Comments.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/translated/tech/20190524 Spell Checking Comments.md b/translated/tech/20190524 Spell Checking Comments.md index 972ebbc940..8c9a92dc02 100644 --- a/translated/tech/20190524 Spell Checking Comments.md +++ b/translated/tech/20190524 Spell Checking Comments.md @@ -1,25 +1,24 @@ [#]: collector: (lujun9972) [#]: translator: (lujun9972) -[#]: reviewer: ( ) +[#]: reviewer: (wxy) [#]: publisher: ( ) [#]: url: ( ) [#]: subject: (Spell Checking Comments) [#]: via: (https://emacsredux.com/blog/2019/05/24/spell-checking-comments/) [#]: author: (Bozhidar Batsov https://emacsredux.com) -注释中的拼写检查 +Emacs 注释中的拼写检查 ====== -我出了名的容易拼错单词。谢天谢地 Emacs 内置了一个名为 `flyspell` 的超棒模式来帮助像我这样的可怜的打字员。 -Flyspell 会在你输入时突出显示拼错的单词 (也就是实时的) 并提供有用的快捷键来快速修复该错误。 +我出了名的容易拼错单词(特别是在播客当中)。谢天谢地 Emacs 内置了一个名为 `flyspell` 的超棒模式来帮助像我这样的可怜的打字员。flyspell 会在你输入时突出显示拼错的单词 (也就是实时的) 并提供有用的快捷键来快速修复该错误。 -大多输入通常会对派生自 `text-mode` (比如 `markdown-mode`,`adoc-mode` )的主模式启用 `flyspell`,但是它对程序员也有所帮助,可以指出他在注释中的错误。所需要的只是启用 `flyspell-prog-mode`。我通常在所有的编程模式中都启用它: +大多输入通常会对派生自 `text-mode`(比如 `markdown-mode`,`adoc-mode` )的主模式启用 `flyspell`,但是它对程序员也有所帮助,可以指出他在注释中的错误。所需要的只是启用 `flyspell-prog-mode`。我通常在所有的编程模式中(至少在 `prog-mode` 派生的模式中)都启用它: ``` (add-hook 'prog-mode-hook #'flyspell-prog-mode) ``` -现在当你在注释中输入错误时,就会得到即使反馈了。要修复单词只需要将光标置于单词后,然后按下 `C-c $` (`M-x flyspell-correct-word-before-point`)。 +现在当你在注释中输入错误时,就会得到即时反馈了。要修复单词只需要将光标置于单词后,然后按下 `C-c $` (`M-x flyspell-correct-word-before-point`)。(还有许多其他方法可以用 `flyspell` 来纠正拼写错误的单词,但为了简单起见,我们暂时忽略它们。) ![flyspell_prog_mode.gif][1] @@ -29,10 +28,10 @@ Flyspell 会在你输入时突出显示拼错的单词 (也就是实时的) 并 via: https://emacsredux.com/blog/2019/05/24/spell-checking-comments/ -作者:[Bozhidar Batsov;Emacs Redux][a] +作者:[Bozhidar Batsov][a] 选题:[lujun9972][b] 译者:[lujun9972](https://github.com/lujun9972) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 From 2479adb6a2a1661cb3e5a8457ba65512b3a8e138 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sun, 1 Sep 2019 23:03:52 +0800 Subject: [PATCH 4/4] PUB @lujun9972 https://linux.cn/article-11294-1.html --- .../tech => published}/20190524 Spell Checking Comments.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {translated/tech => published}/20190524 Spell Checking Comments.md (96%) diff --git a/translated/tech/20190524 Spell Checking Comments.md b/published/20190524 Spell Checking Comments.md similarity index 96% rename from translated/tech/20190524 Spell Checking Comments.md rename to published/20190524 Spell Checking Comments.md index 8c9a92dc02..d48358c2a9 100644 --- a/translated/tech/20190524 Spell Checking Comments.md +++ b/published/20190524 Spell Checking Comments.md @@ -1,8 +1,8 @@ [#]: collector: (lujun9972) [#]: translator: (lujun9972) [#]: reviewer: (wxy) -[#]: publisher: ( ) -[#]: url: ( ) +[#]: publisher: (wxy) +[#]: url: (https://linux.cn/article-11294-1.html) [#]: subject: (Spell Checking Comments) [#]: via: (https://emacsredux.com/blog/2019/05/24/spell-checking-comments/) [#]: author: (Bozhidar Batsov https://emacsredux.com)