fuck yeah books
This commit is contained in:
parent
610c4a9c20
commit
44d4ed6966
10
README.md
10
README.md
@ -16,3 +16,13 @@ $ go run tool/number.go
|
|||||||
```console
|
```console
|
||||||
$ tool/gofmt
|
$ tool/gofmt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Generating
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ cd tool
|
||||||
|
$ go build generate.go
|
||||||
|
$ cd ..
|
||||||
|
$ tool/generate src/063-line-filters/line-filters.go 'Line Filters' > build/line-filters.html
|
||||||
|
$ prince build/line-filters.html -o build/line-filters.pdf
|
@ -1,6 +1,6 @@
|
|||||||
// ## Line Filters
|
// ## Line Filters
|
||||||
|
|
||||||
// A line filter program reads input on stdin,
|
// A _line filter_ program reads input on stdin,
|
||||||
// processes it, and prints results to stdout.
|
// processes it, and prints results to stdout.
|
||||||
// Here's an example line filter that writes
|
// Here's an example line filter that writes
|
||||||
// a capitalized version of all text it reads.
|
// a capitalized version of all text it reads.
|
||||||
@ -38,7 +38,7 @@ func main() {
|
|||||||
|
|
||||||
// Write out the upercased bytes, checking for an error
|
// Write out the upercased bytes, checking for an error
|
||||||
// here as well.
|
// here as well.
|
||||||
outBytes := bytes.ToUpper(inBytes)
|
outBytes := bytes.ToUpper(inBytes)xxxxxxxxxxxxxxxxxxxxx
|
||||||
_, err = out.Write(outBytes)
|
_, err = out.Write(outBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
@ -35,8 +35,8 @@ table td {
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
td.docs {
|
td.docs {
|
||||||
max-width: 375px;
|
max-width: 350px;
|
||||||
min-width: 375px;
|
min-width: 350px;
|
||||||
min-height: 5px;
|
min-height: 5px;
|
||||||
padding: 10px 15px 1px 30px;
|
padding: 10px 15px 1px 30px;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@ -44,9 +44,7 @@ td.docs {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
td.code {
|
td.code {
|
||||||
max-width: 375px;
|
padding: 10px 10px 10px 10px;
|
||||||
min-width: 375px;
|
|
||||||
padding: 14px 30px 16px 15px;
|
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user