Reorder examples slightly

Text Templates should come right after String Formatting
This commit is contained in:
Eli Bendersky 2022-02-11 06:19:37 -08:00
parent 0751f43b3a
commit 1fa5cff95c
6 changed files with 12 additions and 12 deletions

View File

@ -47,8 +47,8 @@ Recover
Collection Functions Collection Functions
String Functions String Functions
String Formatting String Formatting
Regular Expressions
Text Templates Text Templates
Regular Expressions
JSON JSON
XML XML
Time Time

4
public/index.html generated
View File

@ -125,10 +125,10 @@
<li><a href="string-formatting">String Formatting</a></li> <li><a href="string-formatting">String Formatting</a></li>
<li><a href="regular-expressions">Regular Expressions</a></li>
<li><a href="text-templates">Text Templates</a></li> <li><a href="text-templates">Text Templates</a></li>
<li><a href="regular-expressions">Regular Expressions</a></li>
<li><a href="json">JSON</a></li> <li><a href="json">JSON</a></li>
<li><a href="xml">XML</a></li> <li><a href="xml">XML</a></li>

2
public/json generated
View File

@ -9,7 +9,7 @@
onkeydown = (e) => { onkeydown = (e) => {
if (e.key == "ArrowLeft") { if (e.key == "ArrowLeft") {
window.location.href = 'text-templates'; window.location.href = 'regular-expressions';
} }

View File

@ -9,12 +9,12 @@
onkeydown = (e) => { onkeydown = (e) => {
if (e.key == "ArrowLeft") { if (e.key == "ArrowLeft") {
window.location.href = 'string-formatting'; window.location.href = 'text-templates';
} }
if (e.key == "ArrowRight") { if (e.key == "ArrowRight") {
window.location.href = 'text-templates'; window.location.href = 'json';
} }
} }
@ -329,7 +329,7 @@ the <a href="http://golang.org/pkg/regexp/"><code>regexp</code></a> package docs
<p class="next"> <p class="next">
Next example: <a href="text-templates">Text Templates</a>. Next example: <a href="json">JSON</a>.
</p> </p>

View File

@ -14,7 +14,7 @@
if (e.key == "ArrowRight") { if (e.key == "ArrowRight") {
window.location.href = 'regular-expressions'; window.location.href = 'text-templates';
} }
} }
@ -442,7 +442,7 @@ and returns a string without printing it anywhere.</p>
<p class="next"> <p class="next">
Next example: <a href="regular-expressions">Regular Expressions</a>. Next example: <a href="text-templates">Text Templates</a>.
</p> </p>

6
public/text-templates generated
View File

@ -9,12 +9,12 @@
onkeydown = (e) => { onkeydown = (e) => {
if (e.key == "ArrowLeft") { if (e.key == "ArrowLeft") {
window.location.href = 'regular-expressions'; window.location.href = 'string-formatting';
} }
if (e.key == "ArrowRight") { if (e.key == "ArrowRight") {
window.location.href = 'json'; window.location.href = 'regular-expressions';
} }
} }
@ -260,7 +260,7 @@ the range block <code>{{.}}</code> is set to the current item of the iteration.<
<p class="next"> <p class="next">
Next example: <a href="json">JSON</a>. Next example: <a href="regular-expressions">Regular Expressions</a>.
</p> </p>