mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
Transient link issue
This commit is contained in:
parent
e0d0ba6c1d
commit
61e93d9ddc
7 changed files with 89 additions and 70 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
|
||||
|
||||
<link rel="icon" href="/assets/images/favicon.png">
|
||||
<link rel="icon" href="/Go-Logo_Fuchsia.svg">
|
||||
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
|
||||
|
||||
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
<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="/Go-Logo_Black.svg" alt="logo">
|
||||
<img src="/Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
<label class="md-header__button md-icon" for="__drawer">
|
||||
|
|
@ -237,7 +237,7 @@
|
|||
<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="/Go-Logo_Black.svg" alt="logo">
|
||||
<img src="/Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
100 Go Mistakes
|
||||
|
|
@ -420,9 +420,19 @@
|
|||
<div class="md-copyright">
|
||||
|
||||
|
||||
Made with
|
||||
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||
Material for MkDocs
|
||||
</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>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
|
||||
|
||||
<link rel="icon" href="../../assets/images/favicon.png">
|
||||
<link rel="icon" href="../../Go-Logo_Fuchsia.svg">
|
||||
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
|
||||
|
||||
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
<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="../../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
<label class="md-header__button md-icon" for="__drawer">
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
<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="../../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
100 Go Mistakes
|
||||
|
|
@ -445,9 +445,19 @@
|
|||
<div class="md-copyright">
|
||||
|
||||
|
||||
Made with
|
||||
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||
Material for MkDocs
|
||||
</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>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<link rel="next" href="jobs/">
|
||||
|
||||
|
||||
<link rel="icon" href="assets/images/favicon.png">
|
||||
<link rel="icon" href="Go-Logo_Fuchsia.svg">
|
||||
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
|
||||
|
||||
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
<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="Go-Logo_Black.svg" alt="logo">
|
||||
<img src="Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
<label class="md-header__button md-icon" for="__drawer">
|
||||
|
|
@ -244,7 +244,7 @@
|
|||
<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="Go-Logo_Black.svg" alt="logo">
|
||||
<img src="Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
100 Go Mistakes
|
||||
|
|
@ -689,9 +689,19 @@
|
|||
<div class="md-copyright">
|
||||
|
||||
|
||||
Made with
|
||||
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||
Material for MkDocs
|
||||
</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>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<link rel="next" href="../mistakes/">
|
||||
|
||||
|
||||
<link rel="icon" href="../assets/images/favicon.png">
|
||||
<link rel="icon" href="../Go-Logo_Fuchsia.svg">
|
||||
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
|
||||
|
||||
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
<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="../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
<label class="md-header__button md-icon" for="__drawer">
|
||||
|
|
@ -246,7 +246,7 @@
|
|||
<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="../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
100 Go Mistakes
|
||||
|
|
@ -431,7 +431,7 @@
|
|||
|
||||
|
||||
<h1 id="go-jobs">❤️ Go Jobs</h1>
|
||||
<p>Is your company hiring? <a href="https://github.com/sponsors/teivah/sponsorships?sponsor=teivah&tier_id=222445&preview=true">Sponsor</a> this repository and let Go developers know your opportunities in this section (traffic: +400 unique visitor per week).</p>
|
||||
<p>Is your company hiring? <a href="https://github.com/sponsors/teivah/sponsorships?sponsor=teivah&tier_id=316526&preview=true">Sponsor</a> this repository and let Go developers know your opportunities in this section (traffic: +400 unique visitor per week).</p>
|
||||
<p>For example:</p>
|
||||
<h1 id="company-remote-usa-96000-to-120000-a-year">[Company] Remote (USA) - $96,000 to $120,000 a year</h1>
|
||||
<h2 id="job-description">Job Description</h2>
|
||||
|
|
@ -459,9 +459,19 @@
|
|||
<div class="md-copyright">
|
||||
|
||||
|
||||
Made with
|
||||
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||
Material for MkDocs
|
||||
</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>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<link rel="next" href="../chinese/presentation/">
|
||||
|
||||
|
||||
<link rel="icon" href="../assets/images/favicon.png">
|
||||
<link rel="icon" href="../Go-Logo_Fuchsia.svg">
|
||||
<meta name="generator" content="mkdocs-1.5.2, mkdocs-material-9.3.1">
|
||||
|
||||
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
<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="../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
<label class="md-header__button md-icon" for="__drawer">
|
||||
|
|
@ -246,7 +246,7 @@
|
|||
<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="../Go-Logo_Black.svg" alt="logo">
|
||||
<img src="../Go-Logo_Fuchsia.svg" alt="logo">
|
||||
|
||||
</a>
|
||||
100 Go Mistakes
|
||||
|
|
@ -355,13 +355,6 @@
|
|||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#sponsor-this-repository" class="md-nav__link">
|
||||
❤️ Sponsor this Repository
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#code-and-project-organization" class="md-nav__link">
|
||||
Code and Project Organization
|
||||
|
|
@ -488,11 +481,11 @@
|
|||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#data-types-pdf-chapter" class="md-nav__link">
|
||||
Data Types (PDF chapter)
|
||||
<a href="#data-types" class="md-nav__link">
|
||||
Data Types
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Data Types (PDF chapter)">
|
||||
<nav class="md-nav" aria-label="Data Types">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -1307,13 +1300,6 @@
|
|||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#sponsor-this-repository" class="md-nav__link">
|
||||
❤️ Sponsor this Repository
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#code-and-project-organization" class="md-nav__link">
|
||||
Code and Project Organization
|
||||
|
|
@ -1440,11 +1426,11 @@
|
|||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#data-types-pdf-chapter" class="md-nav__link">
|
||||
Data Types (PDF chapter)
|
||||
<a href="#data-types" class="md-nav__link">
|
||||
Data Types
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Data Types (PDF chapter)">
|
||||
<nav class="md-nav" aria-label="Data Types">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -2184,23 +2170,6 @@
|
|||
|
||||
<h1 id="go-mistakes">💡 Go Mistakes</h1>
|
||||
<p>This section contains a summary of the 100 mistakes in the book. Meanwhile, it's also a section open to the community. If you believe that a mistake should be added, please create a <a href="https://github.com/teivah/100-go-mistakes/issues/new?assignees=&labels=community+mistake&template=community_mistake.md&title=">community mistake issue</a>.</p>
|
||||
<h2 id="sponsor-this-repository">❤️ Sponsor this Repository</h2>
|
||||
<p>Is your company hiring? <a href="https://github.com/sponsors/teivah?frequency=one-time&sponsor=teivah">Sponsor</a> this repository and let Go developers know your opportunities in this section (traffic: +400 unique visitor per week).</p>
|
||||
<p>For example:</p>
|
||||
<details>
|
||||
|
||||
<summary>[Company] Remote (USA) - $96,000 to $120,000 a year</summary>
|
||||
|
||||
### Job Description
|
||||
|
||||
...
|
||||
|
||||
### Qualifications
|
||||
|
||||
...
|
||||
|
||||
</details>
|
||||
|
||||
<p><img alt="" src="../inside-cover.png" /></p>
|
||||
<h2 id="code-and-project-organization">Code and Project Organization</h2>
|
||||
<h3 id="unintended-variable-shadowing-1">Unintended variable shadowing (#1)</h3>
|
||||
|
|
@ -2235,7 +2204,7 @@
|
|||
<p>To help clients and maintainers understand your code’s purpose, document exported elements.</p>
|
||||
<h3 id="not-using-linters-16">Not using linters (#16)</h3>
|
||||
<p>To improve code quality and consistency, use linters and formatters.</p>
|
||||
<h2 id="data-types-pdf-chapter">Data Types (<a href="chapter-3.pdf">PDF chapter</a>)</h2>
|
||||
<h2 id="data-types">Data Types</h2>
|
||||
<h3 id="creating-confusion-with-octal-literals-17">Creating confusion with octal literals (#17)</h3>
|
||||
<p>When reading existing code, bear in mind that integer literals starting with 0 are octal numbers. Also, to improve readability, make octal integers explicit by prefixing them with <code>0o</code>.</p>
|
||||
<h3 id="neglecting-integer-overflows-18">Neglecting integer overflows (#18)</h3>
|
||||
|
|
@ -2529,9 +2498,19 @@
|
|||
<div class="md-copyright">
|
||||
|
||||
|
||||
Made with
|
||||
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||
Material for MkDocs
|
||||
</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>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in a new issue