mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-12-18 11:44:20 +08:00
deploy: 56bbafbd08
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>整型 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.1. 整型</h2>
|
||||
<p>Go语言的数值类型包括几种不同大小的整数、浮点数和复数。每种数值类型都决定了对应的大小范围和是否支持正负符号。让我们先从整数类型开始介绍。</p>
|
||||
@@ -703,10 +703,10 @@ fmt.Printf("%d %[1]q\n", newline) // "10 '\n'"
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-01.md"
|
||||
@@ -714,7 +714,7 @@ fmt.Printf("%d %[1]q\n", newline) // "10 '\n'"
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>浮点数 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.2. 浮点数</h2>
|
||||
<p>Go语言提供了两种精度的浮点数,float32和float64。它们的算术规范由IEEE754浮点数国际标准定义,该浮点数规范被所有现代的CPU支持。</p>
|
||||
@@ -699,10 +699,10 @@ func f(x, y float64) float64 {
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-02.md"
|
||||
@@ -710,7 +710,7 @@ func f(x, y float64) float64 {
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>复数 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.3. 复数</h2>
|
||||
<p>Go语言提供了两种精度的复数类型:complex64和complex128,分别对应float32和float64两种浮点数精度。内置的complex函数用于构建复数,内建的real和imag函数分别返回复数的实部和虚部:</p>
|
||||
@@ -654,10 +654,10 @@ func mandelbrot(z complex128) color.Color {
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-03.md"
|
||||
@@ -665,7 +665,7 @@ func mandelbrot(z complex128) color.Color {
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>布尔型 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.4. 布尔型</h2>
|
||||
<p>一个布尔类型的值只有两种:true和false。if和for语句的条件部分都是布尔类型的值,并且==和<等比较操作也会产生布尔型的值。一元操作符<code>!</code>对应逻辑非操作,因此<code>!true</code>的值为<code>false</code>,更罗嗦的说法是<code>(!true==false)==true</code>,虽然表达方式不一样,不过我们一般会采用简洁的布尔表达式,就像用x来表示<code>x==true</code>。</p>
|
||||
@@ -613,10 +613,10 @@ func itob(i int) bool { return i != 0 }
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-04.md"
|
||||
@@ -624,7 +624,7 @@ func itob(i int) bool { return i != 0 }
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>字符串 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.5. 字符串</h2>
|
||||
<p>一个字符串是一个不可改变的字节序列。字符串可以包含任意的数据,包括byte值0,但是通常是用来包含人类可读的文本。文本字符串通常被解释为采用UTF8编码的Unicode码点(rune)序列,我们稍后会详细讨论这个问题。</p>
|
||||
@@ -869,10 +869,10 @@ y, err := strconv.ParseInt("123", 10, 64) // base 10, up to 64 bits
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-05.md"
|
||||
@@ -880,7 +880,7 @@ y, err := strconv.ParseInt("123", 10, 64) // base 10, up to 64 bits
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>常量 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h2>3.6. 常量</h2>
|
||||
<p>常量表达式的值在编译期计算,而不是在运行期。每种常量的潜在类型都是基础类型:boolean、string或数字。</p>
|
||||
@@ -746,10 +746,10 @@ fmt.Printf("%T\n", '\000') // "int32" (rune)
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3-06.md"
|
||||
@@ -757,7 +757,7 @@ fmt.Printf("%T\n", '\000') // "int32" (rune)
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
44
ch3/ch3.html
44
ch3/ch3.html
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh" class="sidebar-visible no-js light">
|
||||
<head>
|
||||
<!-- Book generated using https://github.com/wa-lang/mnbook -->
|
||||
<!-- Book generated using https://github.com/wa-lang/wabook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>基础数据类型 - Go语言圣经</title>
|
||||
<!-- Custom HTML head -->
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
<link rel="icon" href="../favicon.svg">
|
||||
<link rel="shortcut icon" href="../favicon.png">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/css/print.css" media="print">
|
||||
<link rel="stylesheet" href="../static/wabook/css/variables.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/general.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/chrome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/css/print.css" media="print">
|
||||
<!-- Fonts -->
|
||||
<link rel="stylesheet" href="../static/mnbook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/fonts/fonts.css">
|
||||
<link rel="stylesheet" href="../static/wabook/FontAwesome/css/font-awesome.css">
|
||||
<link rel="stylesheet" href="../static/wabook/fonts/fonts.css">
|
||||
<!-- Highlight.js Stylesheets -->
|
||||
<link rel="stylesheet" href="../static/mnbook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/mnbook/ayu-highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/highlight.css">
|
||||
<link rel="stylesheet" href="../static/wabook/tomorrow-night.css">
|
||||
<link rel="stylesheet" href="../static/wabook/ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
</head>
|
||||
@@ -36,15 +36,15 @@
|
||||
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var theme = localStorage.getItem('mnbook-theme');
|
||||
var sidebar = localStorage.getItem('mnbook-sidebar');
|
||||
var theme = localStorage.getItem('wabook-theme');
|
||||
var sidebar = localStorage.getItem('wabook-sidebar');
|
||||
|
||||
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-theme', theme.slice(1, theme.length - 1));
|
||||
localStorage.setItem('wabook-theme', theme.slice(1, theme.length - 1));
|
||||
}
|
||||
|
||||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||||
localStorage.setItem('mnbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
localStorage.setItem('wabook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||||
}
|
||||
} catch (e) { }
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
<!-- Set the theme before any content is loaded, prevents flash -->
|
||||
<script type="text/javascript">
|
||||
var theme;
|
||||
try { theme = localStorage.getItem('mnbook-theme'); } catch(e) { }
|
||||
try { theme = localStorage.getItem('wabook-theme'); } catch(e) { }
|
||||
if (theme === null || theme === undefined) { theme = default_theme; }
|
||||
var html = document.querySelector('html');
|
||||
html.classList.remove('no-js')
|
||||
@@ -66,7 +66,7 @@
|
||||
var html = document.querySelector('html');
|
||||
var sidebar = 'hidden';
|
||||
if (document.body.clientWidth >= 1080) {
|
||||
try { sidebar = localStorage.getItem('mnbook-sidebar'); } catch(e) { }
|
||||
try { sidebar = localStorage.getItem('wabook-sidebar'); } catch(e) { }
|
||||
sidebar = sidebar || 'visible';
|
||||
}
|
||||
html.classList.remove('sidebar-visible');
|
||||
@@ -528,7 +528,7 @@
|
||||
<div class="sidetoc"><nav class="pagetoc"></nav></div>
|
||||
|
||||
<main>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>MnBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/mnbook">https://github.com/wa-lang/mnbook</a></em></li></ul><hr>
|
||||
<ul dir="auto"><li><em>凹语言(Go实现, 面向WASM设计): <a href="https://github.com/wa-lang/wa">https://github.com/wa-lang/wa</a></em></li><li><em>WaBook(Go语言实现的MD电子书构建工具): <a href="https://github.com/wa-lang/wabook">https://github.com/wa-lang/wabook</a></em></li></ul><hr>
|
||||
|
||||
<h1>第3章 基础数据类型</h1>
|
||||
<p>虽然从底层而言,所有的数据都是由比特组成,但计算机一般操作的是固定大小的字,如整数、浮点数、比特数组、内存地址等。进一步将这些数组织在一起,就可表达更多的对象,例如数据包、像素点、诗歌,甚至其他任何对象。Go语言提供了丰富的数据组织形式,这依赖于Go语言内置的数据类型。这些内置的数据类型,兼顾了硬件的特性和表达复杂数据结构的便捷性。</p>
|
||||
@@ -584,10 +584,10 @@
|
||||
<script type="text/javascript">
|
||||
window.playground_copyable = true;
|
||||
</script>
|
||||
<script src="../static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/mark.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/highlight.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/book.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var pagePath = "ch3/ch3.md"
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
<!-- Custom JS scripts -->
|
||||
|
||||
<script src="../static/mnbook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../static/wabook/giscus.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user