unneeded for web
This commit is contained in:
parent
bf370a0434
commit
35cf73b12f
84
meta/chapters.txt
Normal file
84
meta/chapters.txt
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
hello-world
|
||||||
|
# values
|
||||||
|
# variables
|
||||||
|
# inline-assignment
|
||||||
|
# constants
|
||||||
|
# for
|
||||||
|
# if-else
|
||||||
|
# switch
|
||||||
|
# arrays
|
||||||
|
# slices
|
||||||
|
# maps
|
||||||
|
# range
|
||||||
|
# functions
|
||||||
|
# multiple-return-values
|
||||||
|
# varadic-functions
|
||||||
|
# closures
|
||||||
|
# recursion
|
||||||
|
# defer
|
||||||
|
# panic
|
||||||
|
# pointers
|
||||||
|
# new
|
||||||
|
# structs
|
||||||
|
# methods
|
||||||
|
# embedding
|
||||||
|
# interfaces
|
||||||
|
# errors
|
||||||
|
# ok-guards
|
||||||
|
# goroutines
|
||||||
|
# concurrent-goroutines
|
||||||
|
# channels
|
||||||
|
# channel-buffering
|
||||||
|
# channel-directions
|
||||||
|
# synchronization
|
||||||
|
# select
|
||||||
|
# timeouts
|
||||||
|
# scatter-gather
|
||||||
|
# rate-limiting
|
||||||
|
# worker-pools
|
||||||
|
# non-blocking-channel-operations
|
||||||
|
# closing-channels
|
||||||
|
timers
|
||||||
|
tickers
|
||||||
|
# state-goroutine
|
||||||
|
# state-mutex
|
||||||
|
sorting
|
||||||
|
sorting-by-functions
|
||||||
|
# collection-functions
|
||||||
|
# string-functions
|
||||||
|
# string-formatting
|
||||||
|
# regexs
|
||||||
|
# bytes
|
||||||
|
# json
|
||||||
|
# time
|
||||||
|
# epochs
|
||||||
|
# elapsed-time
|
||||||
|
# random-numbers
|
||||||
|
# number-parsing
|
||||||
|
# urls
|
||||||
|
# sha1-hashes
|
||||||
|
# base64-encoding
|
||||||
|
# reading-files
|
||||||
|
# writing-files
|
||||||
|
line-filters
|
||||||
|
# command-line-arguments
|
||||||
|
# command-line-flags
|
||||||
|
# environment-variables
|
||||||
|
# spawning-processes
|
||||||
|
# execing-processes
|
||||||
|
# signals
|
||||||
|
# exit
|
||||||
|
# http-client
|
||||||
|
# https-client
|
||||||
|
# redis
|
||||||
|
# postgres
|
||||||
|
# hello-web
|
||||||
|
# responses
|
||||||
|
# request-routing
|
||||||
|
# request-logging
|
||||||
|
# static-content
|
||||||
|
# basic-authentication
|
||||||
|
# canonical-hosts
|
||||||
|
# middleware
|
||||||
|
# graceful-shutdown
|
||||||
|
# https-servers
|
@ -1,38 +1,21 @@
|
|||||||
/* Layout and typography */
|
/* Layout and typography */
|
||||||
@page { margin: 48px 0px 48px 0px }
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Palatino Linotype';
|
font-family: 'Palatino Linotype';
|
||||||
font-size: 12px;
|
font-size: 16px;
|
||||||
line-height: 16px;
|
line-height: 20px;
|
||||||
color: #252519;
|
color: #252519;
|
||||||
margin: 0; padding: 0;
|
margin: 0; padding: 0;
|
||||||
}
|
}
|
||||||
a {
|
a, a:visited {
|
||||||
color: #261a3b;
|
|
||||||
}
|
|
||||||
a:visited {
|
|
||||||
color: #261a3b;
|
color: #261a3b;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h2 {
|
||||||
margin: 24px 0 12px 0;
|
margin: 24px 0 12px 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
div#title {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
div#title h1 {
|
|
||||||
font-size: 72px;
|
|
||||||
margin-top: 4em;
|
|
||||||
}
|
|
||||||
div#title h3 {
|
|
||||||
font-size: 24px;
|
|
||||||
margin-top: 4em;
|
|
||||||
margin-bottom: 18em;
|
|
||||||
}
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
@ -48,26 +31,11 @@ div.chapter {
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
div#introduction, div#contents {
|
div#contents {
|
||||||
width: 330px;
|
width: 330px;
|
||||||
min-width: 330px;
|
min-width: 330px;
|
||||||
max-width: 330px;
|
max-width: 330px;
|
||||||
}
|
}
|
||||||
div#title {
|
|
||||||
page-break-after: always;
|
|
||||||
}
|
|
||||||
div#contents {
|
|
||||||
page-break-after: always;
|
|
||||||
}
|
|
||||||
div#introduction {
|
|
||||||
page-break-after: always;
|
|
||||||
}
|
|
||||||
div#introduction p {
|
|
||||||
padding: 5px 5px 5px 5px;
|
|
||||||
}
|
|
||||||
div#introduction h2, h3 {
|
|
||||||
padding: 10px 5px 10px 5px;
|
|
||||||
}
|
|
||||||
div#contents h2 {
|
div#contents h2 {
|
||||||
padding: 10px 5px 10px 5px;
|
padding: 10px 5px 10px 5px;
|
||||||
}
|
}
|
||||||
@ -78,9 +46,6 @@ div#contents ul {
|
|||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
div#contents a:after {
|
|
||||||
content: leader(".") target-counter(attr(href, url), page);
|
|
||||||
}
|
|
||||||
div#contents a {
|
div#contents a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user