Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
huanlin committed Aug 31, 2024
1 parent 5a0b9ce commit cd00a26
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
5 changes: 4 additions & 1 deletion content/docs/go/00-learning-resources/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ title: 00 Learning resources
tags: [Go]
---

Some recommended resources about learning Go programming.
整理一些學習 Go 程式設計的資源,主要是網站和書籍。

之所以把參考資源放在整本筆記的最前面,是因為:我的筆記可能很簡略、粗糙,甚至可能有寫錯的地方。換言之,比起閱讀我的筆記,我更建議初學者先參考其他更完整或者更權威的學習材料。

## Free resources

Expand Down Expand Up @@ -37,3 +39,4 @@ Some recommended resources about learning Go programming.
## Courses

從缺,因為我沒有購買線上課程。

12 changes: 5 additions & 7 deletions content/docs/go/01-get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ Go 的優點與強項:
## 建立開發環境 {#setup-dev-env}

## 安裝 Go {#installing-go}
### 安裝 Go {#installing-go}

*(TODO)*
請參閱官方文件:[Download and install](https://go.dev/doc/install)

## IDE
### IDE

比較常聽到建議使用的 IDE 有這些
比較常聽到建議使用的 IDE:

- Visual Studio Code
- GoLand by JetBrains
- Neovim

對鍵盤操控效率極為講究的人可能會喜歡 Neovim 或 JetBrains。我個人是習慣用 VS Code。
對鍵盤操控和 coding 效率極為講究的人可能會喜歡 Neovim 或 JetBrains。我是習慣用 VS Code。

順便整理一下我用 VS Code 寫 Go 程式的一點筆記:

Expand All @@ -60,5 +60,3 @@ Go 的優點與強項:

左下角的 Go 面板可以查看 Go 環境變數以及安裝了哪些 Go tools。


*-- to be continued --*
1 change: 1 addition & 0 deletions content/docs/go/02-hello-world/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,4 @@ go: no module dependencies to download
- 單元測試:
- Go 的單元測試檔案有固定的命名慣例:其主檔名必須以 `_test` 結尾。比如說,要測試的對象是 `hello.go`,那麼其測試檔案的名稱就必須是 `hello_test.go`,而且兩個檔案要放在同一個目錄下。
- 測試函式的命名必須以大寫英文字母開頭,也就是 exported 函式(可供外界存取),這樣才能讓測試工具「看得見」它。

9 changes: 7 additions & 2 deletions layouts/_default/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ <h1>{{ .Title }}</h1>
{{ end -}}
</header>
{{ .Content }}
<br />
{{ partial "page-meta-lastmod.html" . }}
<br /><i class="fa-regular fa-comment"></i> <em>先這樣,也許有空時會再更新。</em> &nbsp;
<em>我的其他站點: </em>
<a href="https://www.facebook.com/huanlin.notes" target="_blank"><i class="fa-brands fa-facebook fa-lg"></i></a> &nbsp;&nbsp;
<a href="https://www.huanlintalk.com/" target="_blank"><i class="fa-brands fa-blogger-b fa-lg" style="color: #e48125;"></i></a> &nbsp;&nbsp;
<a href="https://leanpub.com/u/michaeltsai" target="_blank"><i class="fa-brands fa-leanpub fa-lg" style="color: #1d1e20;"></i></a>
<br /><br />
{{ partial "page-meta-lastmod.html" . }}
<br />
{{ partial "feedback.html" . -}}

Expand Down

0 comments on commit cd00a26

Please sign in to comment.