File tree Expand file tree Collapse file tree 6 files changed +10
-36
lines changed
Expand file tree Collapse file tree 6 files changed +10
-36
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package fileio
33import (
44 "github.com/devlights/try-golang/examples/basic/fileio/filesystem"
55 "github.com/devlights/try-golang/examples/basic/fileio/ja"
6- "github.com/devlights/try-golang/examples/basic/fileio/multiwriter"
76 "github.com/devlights/try-golang/examples/basic/fileio/readwrite"
87 "github.com/devlights/try-golang/examples/basic/fileio/stat"
98 "github.com/devlights/try-golang/examples/basic/fileio/stdinouterr"
@@ -28,5 +27,4 @@ func (r *register) Regist(m mapping.ExampleMapping) {
2827 filesystem .NewRegister ().Regist (m )
2928 ja .NewRegister ().Regist (m )
3029 sync_and_close .NewRegister ().Regist (m )
31- multiwriter .NewRegister ().Regist (m )
3230}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33このディレクトリには以下のサンプルがあります。
44
5- | file | example name | note |
6- | -------------- | ----------------- | ----------------------------------------------------- |
7- | limitread.go | ioop_limit_read | io.LimitedReader のサンプルです. |
8- | onebyteread.go | ioop_onebyte_read | 1バイトずつ読み出す io.LimitedReader のサンプルです. |
5+ | file | example name | note |
6+ | --------------- | ----------------- | ------------------------------------------------------------------------------ |
7+ | limitread.go | ioop_limit_read | io.LimitedReader のサンプルです. |
8+ | onebyteread.go | ioop_onebyte_read | 1バイトずつ読み出す io.LimitedReader のサンプルです. |
9+ | gzip_and_crc.go | ioop_gzip_and_crc | io.MultiWriterを利用してgzip圧縮しながらCRCチェックサムも算出するサンプルです. |
Original file line number Diff line number Diff line change 11package ioop
22
3- import "github.com/devlights/try-golang/mapping"
3+ import (
4+ "github.com/devlights/try-golang/mapping"
5+ )
46
57type (
68 register struct {}
@@ -15,4 +17,5 @@ func NewRegister() mapping.Register {
1517func (r * register ) Regist (m mapping.ExampleMapping ) {
1618 m ["ioop_limit_read" ] = LimitRead
1719 m ["ioop_onebyte_read" ] = OneByteRead
20+ m ["ioop_gzip_and_crc" ] = GzipAndCrc
1821}
Original file line number Diff line number Diff line change 1- package multiwriter
1+ package ioop
22
33import (
44 "bytes"
You can’t perform that action at this time.
0 commit comments