Automated

This commit is contained in:
teivah 2023-09-14 10:41:08 +01:00
parent 4b6126060d
commit ab8c98b888
34 changed files with 5813 additions and 5811 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -2,4 +2,4 @@
Source code and community space of 📖 _100 Go Mistakes and How to Avoid Them_, published by Manning in August 2022. Source code and community space of 📖 _100 Go Mistakes and How to Avoid Them_, published by Manning in August 2022.
Read online: [100go.co](https://100go.co) Read online: [100go.co](https://100go.co).

View file

@ -1,37 +0,0 @@
# Presentation
Source code and community space of _100 Go Mistakes and How to Avoid Them_, published by Manning in 2022.
![](img/cover.png)
## Description
If you're a Go developer looking to improve your skills, this book is for you. With a focus on practical examples, _100 Go Mistakes and How to Avoid Them_ covers a wide range of topics from concurrency and error handling to testing and code organization. You'll learn to write more idiomatic, efficient, and maintainable code and become a proficient Go developer.
## Quotes
> This is an exceptional book. Usually, if a book contains either high-quality explanations or is written succinctly, I consider myself lucky to have found it. This one combines these two characteristics, which is super rare. It's another Go book for me and I still had quite a lot of "a-ha!" moments while reading it, and all of that without the unnecessary fluff, just straight to the point.
Krystian (Goodreads user)
> This should be the required reading for all Golang developers before they touch code in Production... It's the Golang equivalent of the legendary 'Effective Java' by Joshua Bloch.
_Neeraj Shah_
> Not having this will be the 101st mistake a Go programmer could make.
_Anupam Sengupta_
## Where to Buy?
* _100 Go Mistakes and How to Avoid Them_ (🇬🇧 edition: paper, digital, or audiobook)
* [Manning](https://www.manning.com/books/100-go-mistakes-and-how-to-avoid-them)
* [OReilly](https://www.oreilly.com/library/view/100-go-mistakes/9781617299599/)
* Amazon: [.com](https://www.amazon.com/dp/1617299596), [.co.uk](https://www.amazon.co.uk/dp/B0BBSNJR6B), [.de](https://www.amazon.de/dp/B0BBHQD8BQ), [.fr](https://www.amazon.fr/100-Mistakes-How-Avoid-Them/dp/1617299596), [.in](https://www.amazon.in/dp/B0BBHQD8BQ), [.co.jp](https://www.amazon.co.jp/dp/B0BBHQD8BQ), [.es](https://www.amazon.es/dp/B0BBHQD8BQ), [.it](https://www.amazon.it/dp/B0BBHQD8BQ), [.com.br](https://www.amazon.com.br/dp/B0BBHQD8BQ)
* _Go言語100Tips 開発者にありがちな間違いへの対処法_ (🇯🇵 edition)
* Amazon: [.co.jp](https://www.amazon.co.jp/exec/obidos/ASIN/4295017531/)
## About the Author
[Teiva Harsanyi](http://teivah.io) is a senior software engineer at Google. He has worked in various domains, including insurance, transportation, and safety-critical industries like air traffic management. He is passionate about Go and how to design and implement reliable systems.

File diff suppressed because it is too large Load diff

1723
docs/mistakes.md Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
--- ---
title: Chinese (Simplified) title: Chinese (Simplified) Version
--- ---
# 100个Go常见错误及如何避免 # 100个Go常见错误及如何避免

View file

@ -1,4 +1,4 @@
site_name: 100 Go Mistakes site_name: 100 Go Mistakes and How to Avoid Them
site_url: https://100go.co site_url: https://100go.co
repo_name: teivah/100-go-mistakes repo_name: teivah/100-go-mistakes
theme: theme:
@ -31,7 +31,9 @@ theme:
repo_url: https://github.com/teivah/100-go-mistakes repo_url: https://github.com/teivah/100-go-mistakes
plugins: plugins:
- search - search
- social - social:
cards_layout_options:
logo: img/cover.png
extra: extra:
analytics: analytics:
provider: google provider: google
@ -50,12 +52,12 @@ extra:
link: http://blog.teivah.io link: http://blog.teivah.io
nav: nav:
- Book: - Book:
- book.md - index.md
- chapter-1.md - chapter-1.md
- external.md - external.md
- Common Go Mistakes: - Go Mistakes:
- index.md - mistakes.md
- zh/index.md - zh.md
- ❤️ Go Jobs: - ❤️ Go Jobs:
- jobs.md - jobs.md
markdown_extensions: markdown_extensions:

View file

@ -90,7 +90,7 @@
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header"> <header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header"> <nav class="md-header__inner md-grid" aria-label="Header">
<a href="/." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href="/." title="100 Go Mistakes and How to Avoid Them" class="md-header__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="/img/Go-Logo_White.svg" alt="logo"> <img src="/img/Go-Logo_White.svg" alt="logo">
@ -103,7 +103,7 @@
<div class="md-header__ellipsis"> <div class="md-header__ellipsis">
<div class="md-header__topic"> <div class="md-header__topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</span> </span>
</div> </div>
<div class="md-header__topic" data-md-component="header-topic"> <div class="md-header__topic" data-md-component="header-topic">
@ -242,7 +242,7 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href="/book/" class="md-tabs__link"> <a href="/." class="md-tabs__link">
Book Book
@ -260,10 +260,10 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href="/." class="md-tabs__link"> <a href="/mistakes/" class="md-tabs__link">
Common Go Mistakes Go Mistakes
</a> </a>
</li> </li>
@ -317,12 +317,12 @@
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0"> <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer"> <label class="md-nav__title" for="__drawer">
<a href="/." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href="/." title="100 Go Mistakes and How to Avoid Them" class="md-nav__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="/img/Go-Logo_White.svg" alt="logo"> <img src="/img/Go-Logo_White.svg" alt="logo">
</a> </a>
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</label> </label>
<div class="md-nav__source"> <div class="md-nav__source">
@ -379,11 +379,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="/book/" class="md-nav__link"> <a href="/." class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
Presentation Introduction
</span> </span>
@ -460,7 +460,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Common Go Mistakes Go Mistakes
</span> </span>
@ -470,7 +470,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false"> <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2"> <label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
Common Go Mistakes Go Mistakes
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -480,11 +480,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="/." class="md-nav__link"> <a href="/mistakes/" class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
English Common Go Mistakes
</span> </span>
@ -504,7 +504,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

View file

@ -1,877 +0,0 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="canonical" href="https://100go.co/book/">
<link rel="next" href="../chapter-1/">
<link rel="icon" href="../img/Go-Logo_LightBlue.svg">
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
<title>100 Go Mistakes</title>
<link rel="stylesheet" href="../assets/stylesheets/main.046329b4.min.css">
<link rel="stylesheet" href="../assets/stylesheets/palette.85d0ee34.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
<script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
<script id="__analytics">function __md_analytics(){function n(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],n("js",new Date),n("config","G-HMY1HYDM93"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){this.value&&n("event","search",{search_term:this.value})}),document$.subscribe(function(){var a=document.forms.feedback;if(void 0!==a)for(var e of a.querySelectorAll("[type=submit]"))e.addEventListener("click",function(e){e.preventDefault();var t=document.location.pathname,e=this.getAttribute("data-md-value");n("event","feedback",{page:t,data:e}),a.firstElementChild.disabled=!0;e=a.querySelector(".md-feedback__note [data-md-value='"+e+"']");e&&(e.hidden=!1)}),a.hidden=!1}),location$.subscribe(function(e){n("config","G-HMY1HYDM93",{page_path:e.pathname})})});var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=G-HMY1HYDM93",document.getElementById("__analytics").insertAdjacentElement("afterEnd",e)}</script>
<script>"undefined"!=typeof __md_analytics&&__md_analytics()</script>
<meta property="og:type" content="website" >
<meta property="og:title" content="Presentation - 100 Go Mistakes" >
<meta property="og:description" content="None" >
<meta property="og:image" content="https://100go.co/assets/images/social/book.png" >
<meta property="og:image:type" content="image/png" >
<meta property="og:image:width" content="1200" >
<meta property="og:image:height" content="630" >
<meta property="og:url" content="https://100go.co/book/" >
<meta name="twitter:card" content="summary_large_image" >
<meta name="twitter:title" content="Presentation - 100 Go Mistakes" >
<meta name="twitter:description" content="None" >
<meta name="twitter:image" content="https://100go.co/assets/images/social/book.png" >
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="cyan" data-md-color-accent="indigo">
<script>var palette=__md_get("__palette");if(palette&&"object"==typeof palette.color)for(var key of Object.keys(palette.color))document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#presentation" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo">
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
100 Go Mistakes
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Presentation
</span>
</div>
</div>
</div>
<form class="md-header__option" data-md-component="palette">
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="cyan" data-md-color-accent="indigo" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a4 4 0 0 0-4 4 4 4 0 0 0 4 4 4 4 0 0 0 4-4 4 4 0 0 0-4-4m0 10a6 6 0 0 1-6-6 6 6 0 0 1 6-6 6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69Z"/></svg>
</label>
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="blue-grey" data-md-color-accent="indigo" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12c0-2.42-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6a6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69Z"/></svg>
</label>
</form>
<div class="md-header__option">
<div class="md-select">
<button class="md-header__button md-icon" aria-label="Select language">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
</button>
<div class="md-select__inner">
<ul class="md-select__list">
<li class="md-select__item">
<a href="/" hreflang="en" class="md-select__link">
English
</a>
</li>
<li class="md-select__item">
<a href="/zh/" hreflang="zh" class="md-select__link">
Chinese (Simplified)
</a>
</li>
</ul>
</div>
</div>
</div>
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<a href="javascript:void(0)" class="md-search__icon md-icon" title="Share" aria-label="Share" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91 1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"/></svg>
</a>
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
</button>
</nav>
<div class="md-search__suggest" data-md-component="search-suggest"></div>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list" role="presentation"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-header__source">
<a href="https://github.com/teivah/100-go-mistakes" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</div>
<div class="md-source__repository">
teivah/100-go-mistakes
</div>
</a>
</div>
</nav>
<nav class="md-tabs" aria-label="Tabs" data-md-component="tabs">
<div class="md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item md-tabs__item--active">
<a href="./" class="md-tabs__link">
Book
</a>
</li>
<li class="md-tabs__item">
<a href=".." class="md-tabs__link">
Common Go Mistakes
</a>
</li>
<li class="md-tabs__item">
<a href="../jobs/" class="md-tabs__link">
❤️ Go Jobs
</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href=".." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo">
</a>
100 Go Mistakes
</label>
<div class="md-nav__source">
<a href="https://github.com/teivah/100-go-mistakes" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</div>
<div class="md-source__repository">
teivah/100-go-mistakes
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1" checked>
<label class="md-nav__link" for="__nav_1" id="__nav_1_label" tabindex="0">
<span class="md-ellipsis">
Book
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_1_label" aria-expanded="true">
<label class="md-nav__title" for="__nav_1">
<span class="md-nav__icon md-icon"></span>
Book
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Presentation
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
<span class="md-ellipsis">
Presentation
</span>
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#description" class="md-nav__link">
Description
</a>
</li>
<li class="md-nav__item">
<a href="#quotes" class="md-nav__link">
Quotes
</a>
</li>
<li class="md-nav__item">
<a href="#where-to-buy" class="md-nav__link">
Where to Buy?
</a>
</li>
<li class="md-nav__item">
<a href="#about-the-author" class="md-nav__link">
About the Author
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../chapter-1/" class="md-nav__link">
<span class="md-ellipsis">
Read the First Chapter
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../external/" class="md-nav__link">
<span class="md-ellipsis">
External Resources
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
<span class="md-ellipsis">
Common Go Mistakes
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
Common Go Mistakes
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href=".." class="md-nav__link">
<span class="md-ellipsis">
English
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../zh/" class="md-nav__link">
<span class="md-ellipsis">
Chinese (Simplified)
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
<span class="md-ellipsis">
❤️ Go Jobs
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
❤️ Go Jobs
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../jobs/" class="md-nav__link">
<span class="md-ellipsis">
Go Jobs
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#description" class="md-nav__link">
Description
</a>
</li>
<li class="md-nav__item">
<a href="#quotes" class="md-nav__link">
Quotes
</a>
</li>
<li class="md-nav__item">
<a href="#where-to-buy" class="md-nav__link">
Where to Buy?
</a>
</li>
<li class="md-nav__item">
<a href="#about-the-author" class="md-nav__link">
About the Author
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1 id="presentation">Presentation</h1>
<p>Source code and community space of <em>100 Go Mistakes and How to Avoid Them</em>, published by Manning in 2022.</p>
<p><img alt="" src="../img/cover.png" /></p>
<h2 id="description">Description</h2>
<p>If you're a Go developer looking to improve your skills, this book is for you. With a focus on practical examples, <em>100 Go Mistakes and How to Avoid Them</em> covers a wide range of topics from concurrency and error handling to testing and code organization. You'll learn to write more idiomatic, efficient, and maintainable code and become a proficient Go developer.</p>
<h2 id="quotes">Quotes</h2>
<blockquote>
<p>This is an exceptional book. Usually, if a book contains either high-quality explanations or is written succinctly, I consider myself lucky to have found it. This one combines these two characteristics, which is super rare. It's another Go book for me and I still had quite a lot of "a-ha!" moments while reading it, and all of that without the unnecessary fluff, just straight to the point.</p>
</blockquote>
<p> Krystian (Goodreads user)</p>
<blockquote>
<p>This should be the required reading for all Golang developers before they touch code in Production... It's the Golang equivalent of the legendary 'Effective Java' by Joshua Bloch.</p>
</blockquote>
<p> <em>Neeraj Shah</em></p>
<blockquote>
<p>Not having this will be the 101st mistake a Go programmer could make.</p>
</blockquote>
<p> <em>Anupam Sengupta</em></p>
<h2 id="where-to-buy">Where to Buy?</h2>
<ul>
<li>
<p><em>100 Go Mistakes and How to Avoid Them</em> (🇬🇧 edition: paper, digital, or audiobook)</p>
<ul>
<li><a href="https://www.manning.com/books/100-go-mistakes-and-how-to-avoid-them">Manning</a></li>
<li><a href="https://www.oreilly.com/library/view/100-go-mistakes/9781617299599/">OReilly</a></li>
<li>Amazon: <a href="https://www.amazon.com/dp/1617299596">.com</a>, <a href="https://www.amazon.co.uk/dp/B0BBSNJR6B">.co.uk</a>, <a href="https://www.amazon.de/dp/B0BBHQD8BQ">.de</a>, <a href="https://www.amazon.fr/100-Mistakes-How-Avoid-Them/dp/1617299596">.fr</a>, <a href="https://www.amazon.in/dp/B0BBHQD8BQ">.in</a>, <a href="https://www.amazon.co.jp/dp/B0BBHQD8BQ">.co.jp</a>, <a href="https://www.amazon.es/dp/B0BBHQD8BQ">.es</a>, <a href="https://www.amazon.it/dp/B0BBHQD8BQ">.it</a>, <a href="https://www.amazon.com.br/dp/B0BBHQD8BQ">.com.br</a></li>
</ul>
</li>
<li>
<p><em>Go言語100Tips 開発者にありがちな間違いへの対処法</em> (🇯🇵 edition)</p>
<ul>
<li>Amazon: <a href="https://www.amazon.co.jp/exec/obidos/ASIN/4295017531/">.co.jp</a></li>
</ul>
</li>
</ul>
<h2 id="about-the-author">About the Author</h2>
<p><a href="http://teivah.io">Teiva Harsanyi</a> is a senior software engineer at Google. He has worked in various domains, including insurance, transportation, and safety-critical industries like air traffic management. He is passionate about Go and how to design and implement reliable systems.</p>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
<div class="md-copyright__highlight">
Copyright &copy; 2022 - 2023 Teiva Harsanyi
</div>
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
</div>
<div class="md-social">
<a href="https://twitter.com/teivah" target="_blank" rel="noopener" title="twitter.com" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
</a>
<a href="http://blog.teivah.io" target="_blank" rel="noopener" title="blog.teivah.io" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M180.5 74.262C80.813 74.262 0 155.633 0 256s80.819 181.738 180.5 181.738S361 356.373 361 256 280.191 74.262 180.5 74.262Zm288.25 10.646c-49.845 0-90.245 76.619-90.245 171.095s40.406 171.1 90.251 171.1 90.251-76.619 90.251-171.1H559c0-94.503-40.4-171.095-90.248-171.095Zm139.506 17.821c-17.526 0-31.735 68.628-31.735 153.274s14.2 153.274 31.735 153.274S640 340.631 640 256c0-84.649-14.215-153.271-31.742-153.271Z"/></svg>
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "..", "features": ["navigation.tabs", "navigation.tabs.sticky", "search.highlight", "search.share", "search.suggest"], "search": "../assets/javascripts/workers/search.dfff1995.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
<script src="../assets/javascripts/bundle.dff1b7c8.min.js"></script>
</body>
</html>

View file

@ -11,7 +11,7 @@
<link rel="canonical" href="https://100go.co/chapter-1/"> <link rel="canonical" href="https://100go.co/chapter-1/">
<link rel="prev" href="../book/"> <link rel="prev" href="..">
<link rel="next" href="../external/"> <link rel="next" href="../external/">
@ -65,7 +65,7 @@
<meta property="og:type" content="website" > <meta property="og:type" content="website" >
<meta property="og:title" content="Read the First Chapter - 100 Go Mistakes" > <meta property="og:title" content="Read the First Chapter - 100 Go Mistakes and How to Avoid Them" >
<meta property="og:description" content="None" > <meta property="og:description" content="None" >
@ -81,7 +81,7 @@
<meta name="twitter:card" content="summary_large_image" > <meta name="twitter:card" content="summary_large_image" >
<meta name="twitter:title" content="Read the First Chapter - 100 Go Mistakes" > <meta name="twitter:title" content="Read the First Chapter - 100 Go Mistakes and How to Avoid Them" >
<meta name="twitter:description" content="None" > <meta name="twitter:description" content="None" >
@ -127,7 +127,7 @@
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header"> <header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header"> <nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-header__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
@ -140,7 +140,7 @@
<div class="md-header__ellipsis"> <div class="md-header__ellipsis">
<div class="md-header__topic"> <div class="md-header__topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</span> </span>
</div> </div>
<div class="md-header__topic" data-md-component="header-topic"> <div class="md-header__topic" data-md-component="header-topic">
@ -281,7 +281,7 @@
<li class="md-tabs__item md-tabs__item--active"> <li class="md-tabs__item md-tabs__item--active">
<a href="../book/" class="md-tabs__link"> <a href=".." class="md-tabs__link">
Book Book
@ -299,10 +299,10 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href=".." class="md-tabs__link"> <a href="../mistakes/" class="md-tabs__link">
Common Go Mistakes Go Mistakes
</a> </a>
</li> </li>
@ -356,12 +356,12 @@
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0"> <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer"> <label class="md-nav__title" for="__drawer">
<a href=".." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-nav__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
</a> </a>
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</label> </label>
<div class="md-nav__source"> <div class="md-nav__source">
@ -420,11 +420,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="../book/" class="md-nav__link"> <a href=".." class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
Presentation Introduction
</span> </span>
@ -624,7 +624,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Common Go Mistakes Go Mistakes
</span> </span>
@ -634,7 +634,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false"> <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2"> <label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
Common Go Mistakes Go Mistakes
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -644,11 +644,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href=".." class="md-nav__link"> <a href="../mistakes/" class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
English Common Go Mistakes
</span> </span>
@ -668,7 +668,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>

View file

@ -14,7 +14,7 @@
<link rel="prev" href="../chapter-1/"> <link rel="prev" href="../chapter-1/">
<link rel="next" href=".."> <link rel="next" href="../mistakes/">
<link rel="icon" href="../img/Go-Logo_LightBlue.svg"> <link rel="icon" href="../img/Go-Logo_LightBlue.svg">
@ -65,7 +65,7 @@
<meta property="og:type" content="website" > <meta property="og:type" content="website" >
<meta property="og:title" content="External Resources - 100 Go Mistakes" > <meta property="og:title" content="External Resources - 100 Go Mistakes and How to Avoid Them" >
<meta property="og:description" content="None" > <meta property="og:description" content="None" >
@ -81,7 +81,7 @@
<meta name="twitter:card" content="summary_large_image" > <meta name="twitter:card" content="summary_large_image" >
<meta name="twitter:title" content="External Resources - 100 Go Mistakes" > <meta name="twitter:title" content="External Resources - 100 Go Mistakes and How to Avoid Them" >
<meta name="twitter:description" content="None" > <meta name="twitter:description" content="None" >
@ -127,7 +127,7 @@
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header"> <header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header"> <nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-header__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
@ -140,7 +140,7 @@
<div class="md-header__ellipsis"> <div class="md-header__ellipsis">
<div class="md-header__topic"> <div class="md-header__topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</span> </span>
</div> </div>
<div class="md-header__topic" data-md-component="header-topic"> <div class="md-header__topic" data-md-component="header-topic">
@ -281,7 +281,7 @@
<li class="md-tabs__item md-tabs__item--active"> <li class="md-tabs__item md-tabs__item--active">
<a href="../book/" class="md-tabs__link"> <a href=".." class="md-tabs__link">
Book Book
@ -299,10 +299,10 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href=".." class="md-tabs__link"> <a href="../mistakes/" class="md-tabs__link">
Common Go Mistakes Go Mistakes
</a> </a>
</li> </li>
@ -356,12 +356,12 @@
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0"> <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer"> <label class="md-nav__title" for="__drawer">
<a href=".." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-nav__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
</a> </a>
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</label> </label>
<div class="md-nav__source"> <div class="md-nav__source">
@ -420,11 +420,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="../book/" class="md-nav__link"> <a href=".." class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
Presentation Introduction
</span> </span>
@ -569,7 +569,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Common Go Mistakes Go Mistakes
</span> </span>
@ -579,7 +579,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false"> <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2"> <label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
Common Go Mistakes Go Mistakes
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -589,11 +589,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href=".." class="md-nav__link"> <a href="../mistakes/" class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
English Common Go Mistakes
</span> </span>
@ -613,7 +613,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>

File diff suppressed because it is too large Load diff

View file

@ -63,7 +63,7 @@
<meta property="og:type" content="website" > <meta property="og:type" content="website" >
<meta property="og:title" content="Go Jobs - 100 Go Mistakes" > <meta property="og:title" content="Go Jobs - 100 Go Mistakes and How to Avoid Them" >
<meta property="og:description" content="None" > <meta property="og:description" content="None" >
@ -79,7 +79,7 @@
<meta name="twitter:card" content="summary_large_image" > <meta name="twitter:card" content="summary_large_image" >
<meta name="twitter:title" content="Go Jobs - 100 Go Mistakes" > <meta name="twitter:title" content="Go Jobs - 100 Go Mistakes and How to Avoid Them" >
<meta name="twitter:description" content="None" > <meta name="twitter:description" content="None" >
@ -125,7 +125,7 @@
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header"> <header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header"> <nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-header__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
@ -138,7 +138,7 @@
<div class="md-header__ellipsis"> <div class="md-header__ellipsis">
<div class="md-header__topic"> <div class="md-header__topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</span> </span>
</div> </div>
<div class="md-header__topic" data-md-component="header-topic"> <div class="md-header__topic" data-md-component="header-topic">
@ -277,7 +277,7 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href="../book/" class="md-tabs__link"> <a href=".." class="md-tabs__link">
Book Book
@ -295,10 +295,10 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href=".." class="md-tabs__link"> <a href="../mistakes/" class="md-tabs__link">
Common Go Mistakes Go Mistakes
</a> </a>
</li> </li>
@ -356,12 +356,12 @@
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0"> <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer"> <label class="md-nav__title" for="__drawer">
<a href=".." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-nav__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
</a> </a>
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</label> </label>
<div class="md-nav__source"> <div class="md-nav__source">
@ -418,11 +418,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="../book/" class="md-nav__link"> <a href=".." class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
Presentation Introduction
</span> </span>
@ -499,7 +499,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Common Go Mistakes Go Mistakes
</span> </span>
@ -509,7 +509,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false"> <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2"> <label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
Common Go Mistakes Go Mistakes
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -519,11 +519,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href=".." class="md-nav__link"> <a href="../mistakes/" class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
English Common Go Mistakes
</span> </span>
@ -543,7 +543,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>

3822
site/mistakes/index.html Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -2,32 +2,32 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>https://100go.co/</loc> <loc>https://100go.co/</loc>
<lastmod>2023-09-12</lastmod> <lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/book/</loc>
<lastmod>2023-09-12</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
</url> </url>
<url> <url>
<loc>https://100go.co/chapter-1/</loc> <loc>https://100go.co/chapter-1/</loc>
<lastmod>2023-09-12</lastmod> <lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
</url> </url>
<url> <url>
<loc>https://100go.co/external/</loc> <loc>https://100go.co/external/</loc>
<lastmod>2023-09-12</lastmod> <lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
</url> </url>
<url> <url>
<loc>https://100go.co/jobs/</loc> <loc>https://100go.co/jobs/</loc>
<lastmod>2023-09-12</lastmod> <lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/mistakes/</loc>
<lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
</url> </url>
<url> <url>
<loc>https://100go.co/zh/</loc> <loc>https://100go.co/zh/</loc>
<lastmod>2023-09-12</lastmod> <lastmod>2023-09-14</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
</url> </url>
</urlset> </urlset>

Binary file not shown.

View file

@ -11,7 +11,7 @@
<link rel="canonical" href="https://100go.co/zh/"> <link rel="canonical" href="https://100go.co/zh/">
<link rel="prev" href=".."> <link rel="prev" href="../mistakes/">
<link rel="next" href="../jobs/"> <link rel="next" href="../jobs/">
@ -65,11 +65,11 @@
<meta property="og:type" content="website" > <meta property="og:type" content="website" >
<meta property="og:title" content="Chinese (Simplified) - 100 Go Mistakes" > <meta property="og:title" content="Chinese (Simplified) Version - 100 Go Mistakes and How to Avoid Them" >
<meta property="og:description" content="None" > <meta property="og:description" content="None" >
<meta property="og:image" content="https://100go.co/assets/images/social/zh/index.png" > <meta property="og:image" content="https://100go.co/assets/images/social/zh.png" >
<meta property="og:image:type" content="image/png" > <meta property="og:image:type" content="image/png" >
@ -81,11 +81,11 @@
<meta name="twitter:card" content="summary_large_image" > <meta name="twitter:card" content="summary_large_image" >
<meta name="twitter:title" content="Chinese (Simplified) - 100 Go Mistakes" > <meta name="twitter:title" content="Chinese (Simplified) Version - 100 Go Mistakes and How to Avoid Them" >
<meta name="twitter:description" content="None" > <meta name="twitter:description" content="None" >
<meta name="twitter:image" content="https://100go.co/assets/images/social/zh/index.png" > <meta name="twitter:image" content="https://100go.co/assets/images/social/zh.png" >
@ -127,7 +127,7 @@
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header"> <header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header"> <nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="100 Go Mistakes" class="md-header__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-header__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
@ -140,13 +140,13 @@
<div class="md-header__ellipsis"> <div class="md-header__ellipsis">
<div class="md-header__topic"> <div class="md-header__topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</span> </span>
</div> </div>
<div class="md-header__topic" data-md-component="header-topic"> <div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>
</div> </div>
@ -279,7 +279,7 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
<a href="../book/" class="md-tabs__link"> <a href=".." class="md-tabs__link">
Book Book
@ -299,10 +299,10 @@
<li class="md-tabs__item md-tabs__item--active"> <li class="md-tabs__item md-tabs__item--active">
<a href=".." class="md-tabs__link"> <a href="../mistakes/" class="md-tabs__link">
Common Go Mistakes Go Mistakes
</a> </a>
</li> </li>
@ -356,12 +356,12 @@
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0"> <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer"> <label class="md-nav__title" for="__drawer">
<a href=".." title="100 Go Mistakes" class="md-nav__button md-logo" aria-label="100 Go Mistakes" data-md-component="logo"> <a href=".." title="100 Go Mistakes and How to Avoid Them" class="md-nav__button md-logo" aria-label="100 Go Mistakes and How to Avoid Them" data-md-component="logo">
<img src="../img/Go-Logo_White.svg" alt="logo"> <img src="../img/Go-Logo_White.svg" alt="logo">
</a> </a>
100 Go Mistakes 100 Go Mistakes and How to Avoid Them
</label> </label>
<div class="md-nav__source"> <div class="md-nav__source">
@ -418,11 +418,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="../book/" class="md-nav__link"> <a href=".." class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
Presentation Introduction
</span> </span>
@ -501,7 +501,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Common Go Mistakes Go Mistakes
</span> </span>
@ -511,7 +511,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="true"> <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="true">
<label class="md-nav__title" for="__nav_2"> <label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
Common Go Mistakes Go Mistakes
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -521,11 +521,11 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href=".." class="md-nav__link"> <a href="../mistakes/" class="md-nav__link">
<span class="md-ellipsis"> <span class="md-ellipsis">
English Common Go Mistakes
</span> </span>
@ -554,7 +554,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>
@ -565,7 +565,7 @@
<span class="md-ellipsis"> <span class="md-ellipsis">
Chinese (Simplified) Chinese (Simplified) Version
</span> </span>