Documentation
¶
Overview ¶
Package byteop -- バイトに対しての操作についてのサンプルが配置されています.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutPrefixSuffix ¶ added in v0.5.1
func CutPrefixSuffix() error
CutPrefixSuffix は、Go 1.20 で追加された bytes.{CutPrefix,CutSuffix} のサンプルです.
bytes.{CutPrefix,CutSuffix} と strings.{CutPrefix,CutSuffix} は対で追加されている。
REFERENCES ¶
func Go124BytesLines ¶ added in v0.5.35
func Go124BytesLines() error
Go124BytesLines は、Go 1.24 で追加された bytes.Lines() のサンプルです.
Go 1.23 で追加されたイテレータを返すようになっています。 bytes.Lines()は、バイト列を '\n' で区切ったデータをイテレータで提供してくれます。 このデータには '\n' 自身も付いた状態で取得出来るので、その点には注意が必要。 (fmt.Println()でそのまま出力すると2個改行が入ることになる)
REFERENCES ¶
func NewRegister ¶
NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。
func ReaderFromByteSlice ¶
func ReaderFromByteSlice() error
ReaderFromByteSlice -- []byte から io.Reader を生成するサンプルです.
func UsingRepeat ¶ added in v0.5.10
func UsingRepeat() error
UsingRepeat は、bytes.Repeat() のサンプルです.
REFERENCES ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.