The golang tutorials are so excellent. The tone is very professional and thoughtful, the pace is brisk without being rushed. It really is a breath of fresh air. The formatting is minimal and rarely makes use of inline code, further the lack of syntax highlighting is professional. I think the use of good names and clear authoritative verbs are the heart of why the tutorials are so good. They are such an inspiration!
This document creates the Tutorial: Create a Go module in markdown.
foo bar baz.
foo bar baz.
foo bar baz.
- Clear concept name - zoom in with more details.
- bar
- baz
Note: This is a useful tip.
- Bold idea 1. With some more details.
- Bold idea 2. With some more details.
- Bold idea 3. With some more details.
foo bar baz.
foo bar baz.
foo bar baz.
-
Do this thing.
On Linux or Mac:
cd
On Windows:
cd %HOMEPATH%
-
Do this other thing. Another sentence is needed here.
In fact, there is more context required so the following example command makes sense:
mkdir greetings cd greetings
-
Paste the following code into your greetings.go file and save the file.
package greetings import "fmt" // Hello returns a greeting for the named person. func Hello(name string) string { // Return a greeting that embeds the name in a message. message := fmt.Sprintf("Hi, %v. Welcome!", name) return message }
This is a discussion point. This is another discussion point.
The following explains the code:
This is the end that points to the next tutorial.
What about emphasizing code inside a code block?
-
Do this step.
echo hello world
-
Now make this important addition.
echo hello world echo hello world again!
Wow, strange! It seems like the indentation is 3 spaces not 4. 4 spaces puts a space inside the code block like the next step.
-
This code block will have a highlighted section but will also have leading spaces
echo hello world echo hello world again!
It works using grip