Compare commits

...

4 Commits

Author SHA1 Message Date
inkch
d9024146c6 Update public/
Some checks failed
test / build (1.23.0, macos-latest) (push) Has been cancelled
test / build (1.23.0, ubuntu-latest) (push) Has been cancelled
2025-07-23 22:42:19 +09:00
inkch
ea48750ae3 Add note on original source and license 2025-07-23 22:40:17 +09:00
inkch
8a6db25221 Update attribution and source links 2025-07-23 22:39:27 +09:00
inkch
7123d715f4 Tweak layout and typography styles 2025-07-23 22:35:41 +09:00
90 changed files with 939 additions and 131 deletions

View File

@@ -1,3 +1,18 @@
This is a modified copy of [Go by Example](https://gobyexample.com),
originally created by [Mark McGranaghan](https://markmcgranaghan.com)
and [Eli Bendersky](https://eli.thegreenplace.net).
The purpose of this repository is to reuse the site's layout and structure,
with stylistic adjustments made for personal preferences.
All original content is licensed under
[Creative Commons Attribution 3.0 Unported (CC BY 3.0)](https://creativecommons.org/licenses/by/3.0/).
Modifications by [inkch](https://git.inkch.xyz/inkch).
Original source: [github.com/mmcgrana/gobyexample](https://github.com/mmcgrana/gobyexample)
# Go by Example
Content and build toolchain for [Go by Example](https://gobyexample.com),
@@ -110,7 +125,3 @@ iteration to the next](https://go.dev/ref/spec#RangeClause).
It doesn't mean anything is wrong with the example. Typically the code in these
examples will be insensitive to the actual order of the output; if the code is
sensitive to the order - that's probably a bug - so feel free to report it.

11
public/404.html generated
View File

@@ -11,7 +11,16 @@
<p>Sorry, we couldn't find that! Check out the <a href="./">home page</a>?</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/arrays generated
View File

@@ -222,7 +222,16 @@ when printed with <code>fmt.Println</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/atomic-counters generated
View File

@@ -218,7 +218,16 @@ state.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/base64-encoding generated
View File

@@ -172,7 +172,16 @@ but they both decode to the original string as desired.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -138,7 +138,16 @@ concurrent receive.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -132,7 +132,16 @@ receive on this channel.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -167,7 +167,16 @@ started.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/channels generated
View File

@@ -153,7 +153,16 @@ message without having to use any other synchronization.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -198,7 +198,16 @@ example: <code>range</code> over channels.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/closures generated
View File

@@ -173,7 +173,16 @@ recursion.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -155,7 +155,16 @@ with flags.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -279,7 +279,16 @@ and show the help text again.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -238,7 +238,16 @@ way to parameterize programs.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/constants generated
View File

@@ -164,7 +164,16 @@ assignment or function call. For example, here
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/context generated
View File

@@ -184,7 +184,16 @@ cancellation.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/custom-errors generated
View File

@@ -176,7 +176,16 @@ returns <code>false</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/defer generated
View File

@@ -181,7 +181,16 @@ after being written.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/directories generated
View File

@@ -314,7 +314,16 @@ recursively by <code>filepath.WalkDir</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/embed-directive generated
View File

@@ -187,7 +187,16 @@ this example can only be run on your local machine.)</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/enums generated
View File

@@ -217,7 +217,16 @@ determine the next state&hellip;</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -170,7 +170,16 @@ program picks that value up.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/epoch generated
View File

@@ -156,7 +156,16 @@ parsing and formatting.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/errors generated
View File

@@ -260,7 +260,16 @@ errors in a chain of errors.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -186,7 +186,16 @@ processes covers most use cases for <code>fork</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/exit generated
View File

@@ -155,7 +155,16 @@ the status in the terminal.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/file-paths generated
View File

@@ -223,7 +223,16 @@ be made relative to base.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/for generated
View File

@@ -195,7 +195,16 @@ structures.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/functions generated
View File

@@ -174,7 +174,16 @@ multiple return values, which we&rsquo;ll look at next.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/generics generated
View File

@@ -230,7 +230,16 @@ automatically.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/goroutines generated
View File

@@ -189,7 +189,16 @@ concurrent Go programs: channels.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/hello-world generated
View File

@@ -122,7 +122,16 @@ learn more about the language.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/http-client generated
View File

@@ -152,7 +152,16 @@ settings.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/http-server generated
View File

@@ -187,7 +187,16 @@ router we&rsquo;ve just set up.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/if-else generated
View File

@@ -184,7 +184,16 @@ for basic conditions.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/index.html generated
View File

@@ -204,7 +204,16 @@
</ul>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/interfaces generated
View File

@@ -244,7 +244,16 @@ check out this <a href="https://research.swtch.com/interfaces">blog post</a>.</p
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/json generated
View File

@@ -390,7 +390,16 @@ for more.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/line-filters generated
View File

@@ -183,7 +183,16 @@ lowercase lines.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/logging generated
View File

@@ -266,7 +266,16 @@ on a single line.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/maps generated
View File

@@ -255,7 +255,16 @@ printed with <code>fmt.Println</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/methods generated
View File

@@ -178,7 +178,16 @@ naming related sets of methods: interfaces.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -151,7 +151,16 @@ feature of Go functions; we&rsquo;ll look at this next.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/mutexes generated
View File

@@ -228,7 +228,16 @@ management task using only goroutines and channels.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -161,7 +161,16 @@ on both <code>messages</code> and <code>signals</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/number-parsing generated
View File

@@ -192,7 +192,16 @@ bits.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/panic generated
View File

@@ -171,7 +171,16 @@ to use error-indicating return values wherever possible.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/pointers generated
View File

@@ -174,7 +174,16 @@ the memory address for that variable.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/random-numbers generated
View File

@@ -192,7 +192,16 @@ that Go can provide.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -184,7 +184,16 @@ details.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -141,7 +141,16 @@ values be received.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -283,7 +283,16 @@ passed to the iterator will return <code>false</code>.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/rate-limiting generated
View File

@@ -236,7 +236,16 @@ then serve the remaining 2 with ~200ms delays each.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/reading-files generated
View File

@@ -284,7 +284,16 @@ be scheduled immediately after <code>Open</code>ing with
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/recover generated
View File

@@ -179,7 +179,16 @@ panic and resumes in the deferred closure.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/recursion generated
View File

@@ -164,7 +164,16 @@ knows which function to call with <code>fib</code> here.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -306,7 +306,16 @@ the <a href="https://pkg.go.dev/regexp"><code>regexp</code></a> package docs.</p
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/select generated
View File

@@ -166,7 +166,16 @@ concurrently.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/sha256-hashes generated
View File

@@ -181,7 +181,16 @@ you should carefully research
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/signals generated
View File

@@ -193,7 +193,16 @@ causing the program to print <code>interrupt</code> and then exit.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

47
public/site.css generated
View File

@@ -1,3 +1,9 @@
/*
Based on styles from Go by Example by Mark McGranaghan and Eli Bendersky
(https://gobyexample.com), licensed under CC BY 3.0.
Modified by inkch. Original: https://github.com/mmcgrana/gobyexample
*/
/* CSS reset: https://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@@ -45,9 +51,9 @@ table {
/* Layout and typography */
body {
font-family: 'Georgia', serif;
font-family: serif;
font-size: 16px;
line-height: 20px;
line-height: 1.4;
}
em {
font-style: italic;
@@ -61,9 +67,9 @@ h2 a {
text-decoration: none;
}
div.example {
width: 900px;
min-width: 900px;
max-width: 900px;
width: 1100px;
min-width: 1100px;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
margin-bottom: 120px;
@@ -73,18 +79,19 @@ div.example table {
margin-bottom: 20px;
}
p.next {
margin-bottom: 20px;
margin-bottom: 40px;
}
p.footer {
font-size: 75%;
font-size: 80%;
}
div#intro {
width: 420px;
min-width: 420px;
max-width: 420px;
width: 500px;
min-width: 500px;
max-width: 500px;
margin-left: auto;
margin-right: auto;
margin-bottom: 120px;
font-size: 18px;
}
div#intro p {
padding-top: 20px;
@@ -97,22 +104,22 @@ table td {
outline: 0;
}
td.docs {
width: 420px;
max-width: 420px;
min-width: 420px;
width: 500px;
max-width: 500px;
min-width: 500px;
min-height: 5px;
vertical-align: top;
text-align: left;
}
td.docs p {
padding-right: 5px;
padding-right: 15px;
padding-top: 5px;
padding-bottom: 15px;
}
td.code {
width: 480px;
max-width: 480px;
min-width: 480px;
width: 590px;
max-width: 590px;
min-width: 590px;
padding-top: 5px;
padding-right: 5px;
padding-left: 5px;
@@ -123,8 +130,8 @@ td.code.leading {
padding-bottom: 11px;
}
pre, code {
font-size: 14px; line-height: 18px;
font-family: 'Menlo', 'Monaco', 'Consolas', 'Lucida Console', monospace;
font-size: 14px; line-height: 20px;
font-family: monospace;
}
img.copy, img.run {
height: 16px;
@@ -205,7 +212,7 @@ body .c1 { color: #808080 } /* Comment.Single */
background: #282828;
}
/* Syntax highlighting: dark mode */
body .nx { } /* Name.Other */
body .nf { } /* Name.Function */

11
public/slices generated
View File

@@ -316,7 +316,16 @@ Go&rsquo;s other key builtin data structure: maps.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/sorting generated
View File

@@ -142,7 +142,16 @@ a slice is already in sorted order.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -180,7 +180,16 @@ doubt, <a href="testing-and-benchmarking">benchmark</a>!</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -258,7 +258,16 @@ an error message and non-zero return code.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -287,7 +287,16 @@ program.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -402,7 +402,16 @@ and returns a string without printing it anywhere.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -150,7 +150,16 @@ package docs.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -258,7 +258,16 @@ can compare a <code>rune</code> value to a rune literal directly.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -223,7 +223,16 @@ we see that a <code>container</code> now implements the
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/structs generated
View File

@@ -259,7 +259,16 @@ struct type. This technique is commonly used for
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/switch generated
View File

@@ -186,7 +186,16 @@ type corresponding to its clause.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -216,7 +216,16 @@ prefixing them with our temporary directory.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -261,7 +261,16 @@ benchmark function names with a regexp.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/text-templates generated
View File

@@ -248,7 +248,16 @@ the range block <code>{{.}}</code> is set to the current item of the iteration.<
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/tickers generated
View File

@@ -156,7 +156,16 @@ before we stop it.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/time generated
View File

@@ -245,7 +245,16 @@ the Unix epoch.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -185,7 +185,16 @@ explaining the parsing problem.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/timeouts generated
View File

@@ -166,7 +166,16 @@ out and the second succeeding.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/timers generated
View File

@@ -167,7 +167,16 @@ a chance to fire.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/url-parsing generated
View File

@@ -212,7 +212,16 @@ pieces that we extracted.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/values generated
View File

@@ -137,7 +137,16 @@ basic examples.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/variables generated
View File

@@ -165,7 +165,16 @@ This syntax is only available inside functions.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -169,7 +169,16 @@ to form closures, which we&rsquo;ll look at next.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/waitgroups generated
View File

@@ -214,7 +214,16 @@ is likely to be different for each invocation.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/worker-pools generated
View File

@@ -203,7 +203,16 @@ there are 3 workers operating concurrently.</p>
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/writing-files generated
View File

@@ -257,7 +257,16 @@ we&rsquo;ve just seen to the <code>stdin</code> and <code>stdout</code> streams.
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

11
public/xml generated
View File

@@ -254,7 +254,16 @@ to nest all <code>plant</code>s under <code>&lt;parent&gt;&lt;child&gt;...</code
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
</div>

View File

@@ -1,5 +1,14 @@
{{define "footer"}}
<p class="footer">
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a> and <a href="https://eli.thegreenplace.net">Eli Bendersky</a> | <a href="https://github.com/mmcgrana/gobyexample">source</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
Based on
<em><a href="https://gobyexample.com/">Go by Example</a></em>
by <a href="https://markmcgranaghan.com">Mark McGranaghan</a>
and <a href="https://eli.thegreenplace.net">Eli Bendersky</a>,
licensed under
<a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<a href="https://git.inkch.xyz/inkch/gobyexample/commit/de3b5db09c9b980ba971c708a3fe522606e44572">
Style modifications by inkch
</a>.
<a href="https://github.com/mmcgrana/gobyexample">Original source</a>.
</p>
{{end}}

View File

@@ -1,3 +1,9 @@
/*
Based on styles from Go by Example by Mark McGranaghan and Eli Bendersky
(https://gobyexample.com), licensed under CC BY 3.0.
Modified by inkch. Original: https://github.com/mmcgrana/gobyexample
*/
/* CSS reset: https://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@@ -45,9 +51,9 @@ table {
/* Layout and typography */
body {
font-family: 'Georgia', serif;
font-family: serif;
font-size: 16px;
line-height: 20px;
line-height: 1.4;
}
em {
font-style: italic;
@@ -61,9 +67,9 @@ h2 a {
text-decoration: none;
}
div.example {
width: 900px;
min-width: 900px;
max-width: 900px;
width: 1100px;
min-width: 1100px;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
margin-bottom: 120px;
@@ -73,18 +79,19 @@ div.example table {
margin-bottom: 20px;
}
p.next {
margin-bottom: 20px;
margin-bottom: 40px;
}
p.footer {
font-size: 75%;
font-size: 80%;
}
div#intro {
width: 420px;
min-width: 420px;
max-width: 420px;
width: 500px;
min-width: 500px;
max-width: 500px;
margin-left: auto;
margin-right: auto;
margin-bottom: 120px;
font-size: 18px;
}
div#intro p {
padding-top: 20px;
@@ -97,22 +104,22 @@ table td {
outline: 0;
}
td.docs {
width: 420px;
max-width: 420px;
min-width: 420px;
width: 500px;
max-width: 500px;
min-width: 500px;
min-height: 5px;
vertical-align: top;
text-align: left;
}
td.docs p {
padding-right: 5px;
padding-right: 15px;
padding-top: 5px;
padding-bottom: 15px;
}
td.code {
width: 480px;
max-width: 480px;
min-width: 480px;
width: 590px;
max-width: 590px;
min-width: 590px;
padding-top: 5px;
padding-right: 5px;
padding-left: 5px;
@@ -123,8 +130,8 @@ td.code.leading {
padding-bottom: 11px;
}
pre, code {
font-size: 14px; line-height: 18px;
font-family: 'Menlo', 'Monaco', 'Consolas', 'Lucida Console', monospace;
font-size: 14px; line-height: 20px;
font-family: monospace;
}
img.copy, img.run {
height: 16px;
@@ -205,7 +212,7 @@ body .c1 { color: #808080 } /* Comment.Single */
background: #282828;
}
/* Syntax highlighting: dark mode */
body .nx { } /* Name.Other */
body .nf { } /* Name.Function */