Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
b353f75e
Commit
b353f75e
authored
10 years ago
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(tour) comment Chapter func
parent
b2323afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tour/all.go
tour/all.go
+6
-0
No files found.
tour/all.go
View file @
b353f75e
...
...
@@ -94,6 +94,12 @@ var FileBasicsMounting = Content{
`
,
}
// Chapter is used to define a chapter once and derive IDs for any number of
// sections within.
//
// eg.
// Intro := Chapter(1)
// ID("1.1") == Intro(1)
func
Chapter
(
number
int
)
func
(
topic
int
)
ID
{
return
func
(
topic
int
)
ID
{
return
ID
(
fmt
.
Sprintf
(
"%d.%d"
,
number
,
topic
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment