Documentation
¶
Overview ¶
Package ioop -- ioパッケージなどに存在する デコレータ 系の処理についてサンプルが配置されています.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LimitRead ¶
func LimitRead() error
LimitRead は、io.LimitedReader のサンプルです.
通信データのように固定部分を決まったサイズで読み取るときなどに便利。
REFERENCES ¶
func MultiRead ¶ added in v0.5.19
func MultiRead() error
MultiRead は、io.MultiReaderを利用して複数のファイルを一気に読み込むサンプルです。
> MultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readers return a non-nil, non-EOF error, Read will return that error.
> MultiReaderは、与えられた入力リーダーを論理的に連結したリーダーを返します。 順次読み込まれ、すべての入力がEOFを返したらEOFを返します。 いずれかのリーダがEOF以外のエラーを返した場合、Readはそのエラーを返します。
REFERENCES ¶
func MultiWrite ¶ added in v0.5.19
func MultiWrite() error
MultiWrite は、io.MultiWriterを利用してgzip圧縮しながらCRCチェックサムも算出するサンプルです.
REFERENCES ¶
func NewRegister ¶
NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。
func OneByteRead ¶
func OneByteRead() error
OneByteRead は、1バイトずつ読み出す io.LimitedReader のサンプルです.
通信データのように固定部分を決まったサイズで読み取るときなどに便利。
REFERENCES ¶
Types ¶
This section is empty.