Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsaha committed Aug 31, 2022
1 parent 5f590b9 commit d73b0a2
Show file tree
Hide file tree
Showing 19 changed files with 340 additions and 140 deletions.
3 changes: 2 additions & 1 deletion content/code.md
Expand Up @@ -8,7 +8,8 @@ You can download the ZIP file containing all the code discussed in the book
from WILEY's page for the book [here](https://www.wiley.com/en-in/Practical+Go%3A+Building+Scalable+Network+and+Non+Network+Applications-p-9781119773818). Look for the DOWNLOADS
section.

You can also clone the git repository from [here](https://github.com/practicalgo/code).
You can also clone the git repository from [here](https://github.com/practicalgo/code) or download a ZIP file
of the [latest release](https://github.com/practicalgo/code/releases/tag/v1.0.1).


## Solutions to Exercises
Expand Down
10 changes: 10 additions & 0 deletions content/errata.md
Expand Up @@ -19,3 +19,13 @@ func greetUser(c config, name string, w io.Writer) {
```

(Thanks to Max Wolffe for reporting)

*Listing 1.1*

The function definition of `validateArgs()` should check that, the user hasn't
specified the `-h` flag.

Reported as a [GitHub issue](https://github.com/practicalgo/code/issues/5) and
[fixed]() by [titoe218](https://github.com/titoe218).

(Thanks titoe218 and daniel-lee-tech)
20 changes: 20 additions & 0 deletions content/posts/new_code_release_1_1.md
@@ -0,0 +1,20 @@
---
title: Source Code and Errata Updates
date: 2022-08-31
categories:
- updates
---

I have published a new version of the source code accompanying the book.

You can find the v1.0.1 release [here](https://github.com/practicalgo/code/releases/tag/v1.0.1).

I am extremely thankful to the folks who reported and participated in the issues
and pull requests.

The [errata](https://practicalgobook.net/errata/) page has also been updated
with a new error reported.

If you find a bug or missing source code, please file a [GitHub issue](https://github.com/practicalgo/code/issues)
or contact me at mail@practicalgobook.net.

17 changes: 16 additions & 1 deletion public/categories/articles/index.xml
Expand Up @@ -12,6 +12,21 @@



<item>
<title>Source Code and Errata Updates</title>
<link>https://practicalgobook.net/posts/new_code_release_1_1/</link>
<pubDate>Wed, 31 Aug 2022 00:00:00 +0000</pubDate>

<guid>https://practicalgobook.net/posts/new_code_release_1_1/</guid>
<description>I have published a new version of the source code accompanying the book.
You can find the v1.0.1 release here.
I am extremely thankful to the folks who reported and participated in the issues and pull requests.
The errata page has also been updated with a new error reported.
If you find a bug or missing source code, please file a GitHub issue or contact me at mail@practicalgobook.net.</description>
</item>





<item>
Expand All @@ -22,7 +37,7 @@
<guid>https://practicalgobook.net/posts/blog_internals/</guid>
<description>I write my blog posts in Markdown format, and then use Hugo static site generator to generate HTML files. The topic of this blog post is how those HTML files are served to you.
If you happened to come across my GopherCon 2021 lightning talk, this blog post describes the topic in all the gory detail!
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
</item>


Expand Down
12 changes: 6 additions & 6 deletions public/categories/index.html
Expand Up @@ -37,15 +37,15 @@ <h2><a href="https://practicalgobook.net">Practical Go - Book Website</a></h2>
<h3>Categories</h3>
<ul id="posts">
<li>
<a href="https://practicalgobook.net/categories/articles/">
articles
<small><time>May 30, 2022</time></small>
<a href="https://practicalgobook.net/categories/updates/">
updates
<small><time>Aug 31, 2022</time></small>
</a>
</li>
<li>
<a href="https://practicalgobook.net/categories/updates/">
updates
<small><time>Dec 22, 2021</time></small>
<a href="https://practicalgobook.net/categories/articles/">
articles
<small><time>May 30, 2022</time></small>
</a>
</li>
</ul>
Expand Down
19 changes: 17 additions & 2 deletions public/categories/index.xml
Expand Up @@ -6,12 +6,27 @@
<description>Recent content in Categories on Practical Go - Book Website</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Mon, 30 May 2022 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Wed, 31 Aug 2022 00:00:00 +0000</lastBuildDate>

<atom:link href="https://practicalgobook.net/categories/index.xml" rel="self" type="application/rss+xml" />



<item>
<title>Source Code and Errata Updates</title>
<link>https://practicalgobook.net/posts/new_code_release_1_1/</link>
<pubDate>Wed, 31 Aug 2022 00:00:00 +0000</pubDate>

<guid>https://practicalgobook.net/posts/new_code_release_1_1/</guid>
<description>I have published a new version of the source code accompanying the book.
You can find the v1.0.1 release here.
I am extremely thankful to the folks who reported and participated in the issues and pull requests.
The errata page has also been updated with a new error reported.
If you find a bug or missing source code, please file a GitHub issue or contact me at mail@practicalgobook.net.</description>
</item>





<item>
Expand All @@ -22,7 +37,7 @@
<guid>https://practicalgobook.net/posts/blog_internals/</guid>
<description>I write my blog posts in Markdown format, and then use Hugo static site generator to generate HTML files. The topic of this blog post is how those HTML files are served to you.
If you happened to come across my GopherCon 2021 lightning talk, this blog post describes the topic in all the gory detail!
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
</item>


Expand Down
6 changes: 6 additions & 0 deletions public/categories/updates/index.html
Expand Up @@ -36,6 +36,12 @@ <h2><a href="https://practicalgobook.net">Practical Go - Book Website</a></h2>
<main id="content">
<h3>updates</h3>
<ul id="posts">
<li>
<a href="https://practicalgobook.net/posts/new_code_release_1_1/">
Source Code and Errata Updates
<small><time>Aug 31, 2022</time></small>
</a>
</li>
<li>
<a href="https://practicalgobook.net/posts/hello_world/">
Hello world
Expand Down
19 changes: 17 additions & 2 deletions public/categories/updates/index.xml
Expand Up @@ -6,12 +6,27 @@
<description>Recent content in updates on Practical Go - Book Website</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Wed, 22 Dec 2021 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Wed, 31 Aug 2022 00:00:00 +0000</lastBuildDate>

<atom:link href="https://practicalgobook.net/categories/updates/index.xml" rel="self" type="application/rss+xml" />



<item>
<title>Source Code and Errata Updates</title>
<link>https://practicalgobook.net/posts/new_code_release_1_1/</link>
<pubDate>Wed, 31 Aug 2022 00:00:00 +0000</pubDate>

<guid>https://practicalgobook.net/posts/new_code_release_1_1/</guid>
<description>I have published a new version of the source code accompanying the book.
You can find the v1.0.1 release here.
I am extremely thankful to the folks who reported and participated in the issues and pull requests.
The errata page has also been updated with a new error reported.
If you find a bug or missing source code, please file a GitHub issue or contact me at mail@practicalgobook.net.</description>
</item>





<item>
Expand All @@ -22,7 +37,7 @@
<guid>https://practicalgobook.net/posts/blog_internals/</guid>
<description>I write my blog posts in Markdown format, and then use Hugo static site generator to generate HTML files. The topic of this blog post is how those HTML files are served to you.
If you happened to come across my GopherCon 2021 lightning talk, this blog post describes the topic in all the gory detail!
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
</item>


Expand Down
5 changes: 3 additions & 2 deletions public/code/index.html
Expand Up @@ -38,15 +38,16 @@ <h2><a href="https://practicalgobook.net">Practical Go - Book Website</a></h2>
<h1>Code</h1><time>December 8, 2021</time></header><p>You can download the ZIP file containing all the code discussed in the book
from WILEY&rsquo;s page for the book <a href="https://www.wiley.com/en-in/Practical+Go%3A+Building+Scalable+Network+and+Non+Network+Applications-p-9781119773818">here</a>. Look for the DOWNLOADS
section.</p>
<p>You can also clone the git repository from <a href="https://github.com/practicalgo/code">here</a>.</p>
<p>You can also clone the git repository from <a href="https://github.com/practicalgo/code">here</a> or download a ZIP file
of the <a href="https://github.com/practicalgo/code/releases/tag/v1.0.1">latest release</a>.</p>
<h2 id="solutions-to-exercises">Solutions to Exercises</h2>
<p>You can download the ZIP file containing the solutions to the exercises in the book
from WILEY&rsquo;s page for the book <a href="https://www.wiley.com/en-in/Practical+Go%3A+Building+Scalable+Network+and+Non+Network+Applications-p-9781119773818">here</a>. Look for the DOWNLOADS
section.</p>
<p>You can also clone the git repository from <a href="https://github.com/practicalgo/book-exercise-solutions/">here</a>.</p>
</article>
<footer id="footer">
Post managed in a <a href="https://github.com/practicalgo/website/">git repo</a> | <a href="https://github.com/practicalgo/website/commit/7ed0e567e1bb288042aa7bde51cc9bed6ef434a3">Last Commit on this post </a>
Post managed in a <a href="https://github.com/practicalgo/website/">git repo</a> | <a href="https://github.com/practicalgo/website/commit/813e120f1363e2467b40f88e91eeefda89a3cea6">Last Commit on this post </a>
| <a href="https://github.com/practicalgo/website/edit/master/content/code.md">Edit post</a>
<p>
Blog managed via <a href="https://gohugo.io/">Hugo</a> and using a modified version of the <a href="https://themes.gohugo.io/etch/">Etch</a> theme.
Expand Down
16 changes: 11 additions & 5 deletions public/errata/index.html
Expand Up @@ -39,13 +39,19 @@ <h1>Errata</h1><time>June 6, 2022</time></header><p>If you find an error, please
<h2 id="chapter-1">Chapter 1</h2>
<p><em>Page 5 (Electronic and Print)</em></p>
<p>Current <code>greetUser()</code> function is missing a closing paren in the arguments. The fixed version:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-go" data-lang="go"><span style="display:flex;"><span><span style="color:#66d9ef">func</span> <span style="color:#a6e22e">greetUser</span>(<span style="color:#a6e22e">c</span> <span style="color:#a6e22e">config</span>, <span style="color:#a6e22e">name</span> <span style="color:#66d9ef">string</span>, <span style="color:#a6e22e">w</span> <span style="color:#a6e22e">io</span>.<span style="color:#a6e22e">Writer</span>) {
</span></span><span style="display:flex;"><span> <span style="color:#75715e">// function body remains same
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>}
</span></span></code></pre></div><p>(Thanks to Max Wolffe for reporting)</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-go" data-lang="go"><span style="color:#66d9ef">func</span> <span style="color:#a6e22e">greetUser</span>(<span style="color:#a6e22e">c</span> <span style="color:#a6e22e">config</span>, <span style="color:#a6e22e">name</span> <span style="color:#66d9ef">string</span>, <span style="color:#a6e22e">w</span> <span style="color:#a6e22e">io</span>.<span style="color:#a6e22e">Writer</span>) {
<span style="color:#75715e">// function body remains same
</span><span style="color:#75715e"></span>}
</code></pre></div><p>(Thanks to Max Wolffe for reporting)</p>
<p><em>Listing 1.1</em></p>
<p>The function definition of <code>validateArgs()</code> should check that, the user hasn&rsquo;t
specified the <code>-h</code> flag.</p>
<p>Reported as a <a href="https://github.com/practicalgo/code/issues/5">GitHub issue</a> and
<a href="">fixed</a> by <a href="https://github.com/titoe218">titoe218</a>.</p>
<p>(Thanks titoe218 and daniel-lee-tech)</p>
</article>
<footer id="footer">
Post managed in a <a href="https://github.com/practicalgo/website/">git repo</a> | <a href="https://github.com/practicalgo/website/commit/e00a7674cc8f9d0e13d26c64eaf2dd4d22e556a6">Last Commit on this post </a>
Post managed in a <a href="https://github.com/practicalgo/website/">git repo</a> | <a href="https://github.com/practicalgo/website/commit/813e120f1363e2467b40f88e91eeefda89a3cea6">Last Commit on this post </a>
| <a href="https://github.com/practicalgo/website/edit/master/content/errata.md">Edit post</a>
<p>
Blog managed via <a href="https://gohugo.io/">Hugo</a> and using a modified version of the <a href="https://themes.gohugo.io/etch/">Etch</a> theme.
Expand Down
8 changes: 7 additions & 1 deletion public/index.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html><head>
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.92.2" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Book website for Practical Go, a book by Amit Saha">
Expand Down Expand Up @@ -50,6 +50,12 @@ <h3 id="contact">Contact</h3>
<h3>Posts</h3>
<ul id="posts">
<li>
<a href="https://practicalgobook.net/posts/new_code_release_1_1/">
Source Code and Errata Updates
<small><time>Aug 31, 2022</time></small>
</a>
</li>
<li>
<a href="https://practicalgobook.net/posts/blog_internals/">
The server powering practicalgobook.net
<small><time>May 30, 2022</time></small>
Expand Down
17 changes: 16 additions & 1 deletion public/index.xml
Expand Up @@ -11,6 +11,21 @@



<item>
<title>Source Code and Errata Updates</title>
<link>https://practicalgobook.net/posts/new_code_release_1_1/</link>
<pubDate>Wed, 31 Aug 2022 00:00:00 +0000</pubDate>

<guid>https://practicalgobook.net/posts/new_code_release_1_1/</guid>
<description>I have published a new version of the source code accompanying the book.
You can find the v1.0.1 release here.
I am extremely thankful to the folks who reported and participated in the issues and pull requests.
The errata page has also been updated with a new error reported.
If you find a bug or missing source code, please file a GitHub issue or contact me at mail@practicalgobook.net.</description>
</item>





<item>
Expand All @@ -21,7 +36,7 @@
<guid>https://practicalgobook.net/posts/blog_internals/</guid>
<description>I write my blog posts in Markdown format, and then use Hugo static site generator to generate HTML files. The topic of this blog post is how those HTML files are served to you.
If you happened to come across my GopherCon 2021 lightning talk, this blog post describes the topic in all the gory detail!
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
Background Content delivery - Proof of Concept Content Delivery - Caddy as a reverse proxy Automating restart on updates Zero downtime updates Summary Background When you type in https://practicalgobook.</description>
</item>


Expand Down

0 comments on commit d73b0a2

Please sign in to comment.