Skip to content

Commit 270a22d

Browse files
committed
wiki: clean up markdown
Normalized heading levels, updated titles, fixed a few link syntax problems. We might delete some of these as outdated at some point. For golang/go#61940.
1 parent acff1b5 commit 270a22d

File tree

157 files changed

+1668
-1067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1668
-1067
lines changed

AVX512.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: AVX512
3+
---
4+
15
Go 1.11 release introduces [AVX-512](https://en.wikipedia.org/wiki/AVX-512) support.
26
This page describes how to use new features as well as some important encoder details.
37

@@ -284,4 +288,4 @@ noConflicts:
284288
ADDL $16, DX //; add edx, 0x10
285289
CMPL DX, $1024 //; cmp edx, 0x400
286290
JB top //; jb top
287-
```
291+
```

Articles.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Articles
3+
---
4+
15

26
Please keep all entries in reverse chronological order (most recent first)
37

@@ -261,4 +265,4 @@ Start by reading the [overview of server programming](LearnServerProgramming) do
261265
* [Go: 90% 완벽?!, 100% of the time 슬라이드 번역 ](http://100coding.com/go/slide)
262266
* [Go 동시성 패턴 advanced 영상 번역](http://www.youtube.com/watch?v=4g2skln42eo)
263267
* [Go + Revel + Gorp 간단 게시판 만들기](http://100coding.com/go/tutorial/1)
264-
* [Go + Revel + Gorm 으로 만드는 블로그](https://github.com/jaehue/goblog/wiki/Hello-World)
268+
* [Go + Revel + Gorm 으로 만드는 블로그](https://github.com/jaehue/goblog/wiki/Hello-World)

AssemblyPolicy.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: AssemblyPolicy
3+
---
4+
15
This document describes when and how to add assembly code to the Go cryptography packages.
26

37
In general, the rules are:
@@ -12,4 +16,4 @@ In general, the rules are:
1216
* The code must be tested in our CI. This means there need to be builders that support the instructions, and if there are multiple (or fallback) paths they must be tested separately. (Tip: use `GODEBUG=cpu.X=off` to disable detection of CPU features.)
1317
* Document in the Go code why the implementation requires assembly (specific performance benefit, access to instructions, etc), so we can reevaluate as the compiler improves.
1418

15-
Not all assembly currently in the standard library adheres to this policy. Changes to existing assembly will be discouraged until that implementation is updated to be compliant. New assembly must be compliant.
19+
Not all assembly currently in the standard library adheres to this policy. Changes to existing assembly will be discouraged until that implementation is updated to be compliant. New assembly must be compliant.

Benchmarks.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Benchmarks
3+
---
4+
15
These are benchmarks collected from the community used to measure the effects of changes to the Go core (compiler, runtime, garbage collector, and libraries). They should have the following properties:
26

37
- they matter; someone cares, perhaps in a dollars-and-cents way, that they run well
@@ -65,3 +69,4 @@ A few have been proposed but have so far failed to make the cut (for fetch, buil
6569
| eolian_dsp | | `buddin.us/eolian/dsp` | `Benchmark` | |
6670
| ethereum_whisperv5 | | `github.com/ethereum/go-ethereum/whisper/whisperv5` | `Benchmark` | |
6771
| kanzi | | `github.com/flanglet/kanzi/go/src/kanzi/benchmark` | `Benchmark` | |
72+

Blogs.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Blogs
3+
---
4+
15
A set of blogs dedicated to Go.
26

37
NOTE: Please don't add individual blog entries to this page. Those belong in [articles](Articles) instead.
@@ -84,3 +88,4 @@ NOTE: Please don't add individual blog entries to this page. Those belong in [ar
8488
* [No Headback](http://xargin.com/)
8589
* [Go 语言基础](https://github.com/weirubo/learn_go)
8690
* [chai2010 的博客](https://chai2010.cn/)
91+

Books.md

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Books
3+
---
4+
15
Other book lists:
26

37
* [Awesome Go Books](https://github.com/dariubs/GoBooks)
@@ -21,7 +25,7 @@ Sorted by publication date, ascending.
2125
- [Polish](#polish)
2226
- [Persian](#persian)
2327

24-
# English
28+
### English
2529
* **Go Programming**
2630
* Author: John P. Baugh
2731
* Publication Date: June 16, 2010
@@ -664,7 +668,7 @@ Sorted by publication date, ascending.
664668
* Reference: http://microservicesingo.com/
665669
* Status: [Cancelled per O'Reilly Employee](http://support.oreilly.com/oreilly/topics/availability-of-microservices-in-go-use-go-to-build-scalable-backends-by-matthew-campbell)
666670

667-
# Chinese
671+
### Chinese
668672
* **Go语言·云动力**
669673
* Author: 樊虹剑(fango)
670674
* Publication Date: 2012-06
@@ -734,7 +738,7 @@ Sorted by publication date, ascending.
734738
* ISBN: ---
735739
* Reference: https://github.com/chai2010/ugo-compiler-book
736740

737-
# Japanese
741+
### Japanese
738742
* **はじめての「Go言語」**
739743
* Author: 茨木 隆彰
740744
* Publication Date: 2010-11
@@ -801,7 +805,7 @@ Sorted by publication date, ascending.
801805
* ISBN: 978-4297134198
802806
* Reference: https://gihyo.jp/book/2023/978-4-297-13419-8
803807

804-
# French
808+
### French
805809

806810
* **Programmer en Go - Pourquoi ? Comment ?**
807811
* Author: Rudy Rigot
@@ -817,7 +821,7 @@ Sorted by publication date, ascending.
817821
* Reference (publisher): https://www.dunod.com/sciences-techniques/langage-go-fondamentaux-du-langage
818822

819823

820-
# German
824+
### German
821825
* **Programmierung in Google Go** (not available for buying any more)
822826
* Authors: Rainer Feike and Steffen Blass
823827
* Publication Date: 2010-11
@@ -843,7 +847,7 @@ Sorted by publication date, ascending.
843847
* ISBN: 978-3-86802-415-9
844848
* Reference: http://entwickler.de/press/Einstieg-in-Google-Go
845849

846-
# Brazilian Portuguese
850+
### Brazilian Portuguese
847851
* **A Linguagem de Programação Go**
848852
* Author: Alan A. A. Donovan, Brian W. Kernighan
849853
* Publication Date: 2017
@@ -862,7 +866,7 @@ Sorted by publication date, ascending.
862866
* ISBN: 978-85-75224-89-2
863867
* Reference: http://shop.oreilly.com/product/0636920046516.do
864868

865-
# Russian
869+
### Russian
866870
* **Программирование на языке Go**
867871
* Author: Марк Саммерфильд
868872
* Publication Date: 2013-02-14
@@ -887,7 +891,7 @@ Sorted by publication date, ascending.
887891
* ISBN: 978-5-4461-1617-1
888892
* Reference: https://www.piter.com/product/golang-dlya-profi-rabota-s-setyu-mnogopotochnost-struktury-dannyh-i-mashinnoe-obuchenie-s-go
889893

890-
# Español
894+
### Español
891895
* **Aprende Go en Y minutos**https://go101.org
892896
* Author: Nacho Pacheco
893897
* Publication Date: 2015-02-24
@@ -906,7 +910,7 @@ Sorted by publication date, ascending.
906910
* ISBN: ---
907911
* Reference: https://www.gitbook.com/book/nachopacheco/go-es/
908912

909-
# Korean
913+
### Korean
910914
* **가장 빨리 만나는 Go 언어**
911915
* Author: 이재홍
912916
* Publication Date: June 2015
@@ -985,7 +989,7 @@ Sorted by publication date, ascending.
985989
* ISBN: 979-1-16175-208-2
986990
* Reference: http://acornpub.co.kr/book/mastering-go
987991

988-
# Indonesian
992+
### Indonesian
989993
* **Bahasa Pemrograman Go**
990994
* Author: Sajarwo Anggai
991995
* Publication Date: October 21, 2013
@@ -998,7 +1002,7 @@ Sorted by publication date, ascending.
9981002
* ISBN: ---
9991003
* Reference: https://dasarpemrogramangolang.novalagung.com
10001004

1001-
# Italian
1005+
### Italian
10021006
* **Programmare in Linguaggio Go**
10031007
* Author: Renato Mite
10041008
* Publication Date: 9 Oct 2016
@@ -1008,15 +1012,15 @@ Sorted by publication date, ascending.
10081012
* Reference (Kobo Books): https://store.kobobooks.com/it-it/ebook/programmare-in-linguaggio-go
10091013
* Repository: https://github.com/rmite/gobook
10101014

1011-
# Polish
1015+
### Polish
10121016

10131017
* **Język Go. Poznaj i programuj**
10141018
* Authors: Alan A. A. Donovan, Brian W. Kernighan; translated by Lech Lachowski
10151019
* Publication Date: July 2016
10161020
* ISBN: 978-83-283-2467-1
10171021
* Reference: https://helion.pl/ksiazki/jezyk-go-poznaj-i-programuj-alan-a-a-donovan-brian-w-kernighan,jgopop.htm
10181022

1019-
# Persian
1023+
### Persian
10201024
* **GoFarsi book**
10211025
* Author: Javad Rajabzadeh
10221026
* Publication Date: 23 oct 2022
@@ -1030,7 +1034,7 @@ Sorted by publication date, ascending.
10301034
* ISBN: ---
10311035
* Repository: https://github.com/thedevsir/gosuccinctly
10321036

1033-
# Looking for contributors
1037+
### Looking for contributors
10341038

10351039
[Add Go books here that are looking for writers, editors, Gopher illustrators, and translators.]
10361040

@@ -1040,4 +1044,3 @@ Sorted by publication date, ascending.
10401044
* ISBN: 9781787286740
10411045
* Reference: https://www.amazon.in/Web-Development-Cookbook-full-stack-applications/dp/1787286746
10421046

1043-
***

BoundingResourceUse.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Bounding resource use
3+
---
4+
15
To bound a program's use of a limited resource - like memory - have goroutines synchronize their use of that resource using a buffered channel (i.e., use the channel as a semaphore):
26

37
```go
@@ -25,4 +29,5 @@ func handle(r *Request) {
2529

2630
## References
2731

28-
Effective Go's discussion of channels: https://go.dev/doc/effective_go#channels
32+
Effective Go's discussion of channels: https://go.dev/doc/effective_go#channels
33+

CSSStyleGuide.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Go CSS Coding Guidelines
1+
---
2+
title: Go CSS Coding Guidelines
3+
---
24

35
**Please [discuss changes](https://go.dev/issue/new?title=wiki%3A+CSSStyleGuide+change&body=&labels=Documentation) before editing this page**, even _minor_ ones. Many people have opinions and this is not the place for edit wars.
46

@@ -218,3 +220,5 @@ Add height and width attributes to images in the html markup to help minimize la
218220
```
219221
<img src="url/to/image.png" height="240" width="160">
220222
```
223+
224+

ChromeOS.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Introduction
1+
---
2+
title: ChromeOS
3+
---
4+
5+
## Introduction
26

37
You don't need to compile from source in Developer mode, you can just use the [Chromebrew](https://github.com/skycocker/chromebrew)-provided version.
48

@@ -7,7 +11,7 @@ If your Chromebook is relatively new, you can enable the Linux VM now built into
711
This tutorial will show you how to install, build, and run Go on Chrome OS.
812
Please note this has only been tested on a 64GB LTE Pixel, however it should work on other Chromebooks. Note that enabling developer mode reduces the security guarantees offered by Chrome OS.
913

10-
# Install Go
14+
## Install Go
1115
First download the latest version of Go for Linux from the [Go Downloads page](https://go.dev/dl/).
1216
After that, open a shell by hitting (CTRL+ALT+T) and typing in `shell` then hit enter. Then extract it using the following command (when replacing `< Go Linux package >` with the name of the file you downloaded):
1317

@@ -17,18 +21,18 @@ sudo tar xpvf ~/Downloads/< Go Linux package > -C /usr/local
1721

1822
Go should now be installed you can test this by typing `/usr/local/go/bin/go`. If it installed correctly, you should see the Go help prompt. Go is now installed.
1923

20-
# Create a Workspace
24+
## Create a Workspace
2125
To keep this simple just create a folder called `/usr/local/go/work`. Also, create a folder called `src` inside `/usr/local/go/work/`.
2226

23-
# Set PATH
27+
## Set PATH
2428
Add the following to `~/.bashrc`:
2529
```
2630
export GOPATH="/usr/local/go/work"
2731
export PATH="${PATH}:/usr/local/go/bin:${GOPATH}/bin"
2832
```
2933
This will allow you to run your Go programs in your shell.
3034

31-
# Test if it worked
35+
## Test if it worked
3236
First create a folder inside of your `/usr/local/go/src` folder. After that create a file in your folder called `hello.go` with the following in it:
3337
```go
3438
package main
@@ -42,5 +46,7 @@ func main() {
4246
Now, run `go install hello`. Then, run `${GOPATH}/bin/hello` (or just `hello` if you setup your GOPATH above) and you should see `Hello, Chrome OS!`.
4347
***
4448

45-
# Reporting bugs
49+
## Reporting bugs
4650
Please go to [Issues](https://github.com/golang/go/issues) to report any issues you have.
51+
52+

CodeReview.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: CodeReview
3+
---
4+
15
Be sure to familiarize yourself with the code review process from the official [Contribution Guide](https://go.dev/doc/contribute) first.
26

37
# Reviewer Parlance
@@ -51,4 +55,4 @@ Gerrit's code review model is to rewrite a single commit until it is correct. Gi
5155
$ git remote add --mirror=push fork [email protected]:yourusername/go.git
5256
```
5357

54-
Then running `git push fork` will update GitHub to perfectly mirror *everything* (all branches, all tags, etc.). This is handy, but take care when using this on multiple clients. You are bypassing the usual git safeguards, so it is easy to overwrite (and thus lose) work pushed by a different client.
58+
Then running `git push fork` will update GitHub to perfectly mirror *everything* (all branches, all tags, etc.). This is handy, but take care when using this on multiple clients. You are bypassing the usual git safeguards, so it is easy to overwrite (and thus lose) work pushed by a different client.

CodeReviewComments.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Go Code Review Comments
1+
---
2+
title: Go Code Review Comments
3+
---
24

35
This page collects common comments made during reviews of Go code, so
46
that a single detailed explanation can be referred to by shorthands.
57
This is a laundry list of common style issues, not a comprehensive style guide.
68

79
You can view this as a supplement to [Effective Go](https://go.dev/doc/effective_go).
810

9-
Additional comments related to testing can be found at [Go Test Comments](https://github.com/golang/go/wiki/TestComments)
11+
Additional comments related to testing can be found at [Go Test Comments](/wiki/TestComments)
1012

1113
Google has published a longer [Go Style Guide](https://google.github.io/styleguide/go/decisions).
1214

@@ -425,7 +427,7 @@ boundaries are, not to start counting lines.
425427
426428
See https://go.dev/doc/effective_go#mixed-caps. This applies even when it breaks conventions in other languages. For example an unexported constant is `maxLength` not `MaxLength` or `MAX_LENGTH`.
427429
428-
Also see [Initialisms](https://github.com/golang/go/wiki/CodeReviewComments#initialisms).
430+
Also see [Initialisms](/wiki/CodeReviewComments#initialisms).
429431
430432
## Named Result Parameters
431433
@@ -597,7 +599,7 @@ if got != tt.want {
597599
598600
Note that the order here is actual != expected, and the message uses that order too. Some test frameworks encourage writing these backwards: 0 != x, "expected 0, got x", and so on. Go does not.
599601
600-
If that seems like a lot of typing, you may want to write a [[table-driven test|TableDrivenTests]].
602+
If that seems like a lot of typing, you may want to write a [table-driven test](TableDrivenTests).
601603
602604
Another common technique to disambiguate failing tests when using a test helper with different input is to wrap each caller with a different TestFoo function, so the test fails with that name:
603605
@@ -615,3 +617,5 @@ Variable names in Go should be short rather than long. This is especially true
615617
The basic rule: the further from its declaration that a name is used, the more descriptive the name must be. For a method receiver, one or two letters is sufficient. Common variables such as loop indices and readers can be a single letter (`i`, `r`). More unusual things and global variables need more descriptive names.
616618
617619
See also the longer discussion in [the Google Go Style Guide](https://google.github.io/styleguide/go/decisions#variable-names).
620+
621+

CodeReviewConcurrency.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# Code Review: Go Concurrency
1+
---
2+
title: "Code Review: Go Concurrency"
3+
---
24

35
This page is an addition to the [Go Code Review Comments](
4-
https://github.com/golang/go/wiki/CodeReviewComments) list. The goal of this list is to help to find
6+
/wiki/CodeReviewComments) list. The goal of this list is to help to find
57
concurrency-related bugs when reviewing Go code.
68

79
You may also read through this list just once to refresh your memory and to make sure you are aware
@@ -126,7 +128,7 @@ same result and doesn't have side effects.
126128
127129
If the race condition is not benign, use methods [`sync.Map.LoadOrStore()`](
128130
https://pkg.go.dev/sync/#Map.LoadOrStore) and [`LoadAndDelete()`](
129-
https://pkg.go.dev/sync/#Map.LoadAndDelete) to fix it.
131+
https://pkg.go.dev/sync/#Map.LoadAndDelete) to fix it.
130132

131133
### Scalability
132134

@@ -227,7 +229,7 @@ This code would be wrong without calling `Round(0)`, i. e. stripping the monoton
227229

228230
## Reading List
229231

230-
[Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments): a checklist for
232+
[Go Code Review Comments](/wiki/CodeReviewComments): a checklist for
231233
reviewing Go code, not concurrency-specific.
232234

233235
Go concurrency:
@@ -245,4 +247,5 @@ Go concurrency:
245247

246248
Concurrency, but not specific to Go:
247249
- [Mechanical Sympathy: Single Writer Principle](
248-
https://mechanical-sympathy.blogspot.com/2011/09/single-writer-principle.html)
250+
https://mechanical-sympathy.blogspot.com/2011/09/single-writer-principle.html)
251+

CodeTools.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: CodeTools
3+
---
4+
15
An overview of tools that will help improve your Go code
26

37
## All-in-one
@@ -67,3 +71,4 @@ An overview of tools that will help improve your Go code
6771
## Visualization
6872

6973
- [godepgraph](http://github.com/kisielk/godepgraph) - A tool for generating dependency graphs of Go code.
74+

0 commit comments

Comments
 (0)