Documentation ¶
Index ¶
- Variables
- func CopyFile(srcPath, dstPath string) error
- func FileExists(path string) booldeprecated
- func IsDir(path string) bool
- func IsFile(path string) bool
- func MkdirParent(path string) error
- func ReadByte(reader io.Reader) (byte, error)deprecated
- func ReadBytes(reader io.Reader, size int) ([]byte, error)deprecated
- func ReadJSON(path string, data any) errordeprecated
- func ReadString(reader io.Reader, size int) (string, error)deprecated
- func ReadUVariant(reader io.Reader) (uint64, error)deprecated
- func ReadVString(reader io.Reader) (string, error)deprecated
- func Skip(reader io.Reader) errordeprecated
- func SkipN(reader io.Reader, size int) error
- func ToByteReader(reader io.Reader) io.ByteReaderdeprecated
- func UVariantLen(x uint64) intdeprecated
- func WriteByte(writer io.Writer, b byte) errordeprecated
- func WriteBytes(writer io.Writer, b []byte) errordeprecated
- func WriteFile(path string, content []byte) errordeprecated
- func WriteJSON(path string, data any) errordeprecated
- func WriteString(writer io.Writer, str string) errordeprecated
- func WriteUVariant(writer io.Writer, value uint64) errordeprecated
- func WriteVString(writer io.Writer, value string) errordeprecated
- func WriteZero(writer io.Writer) errordeprecated
- func WriteZeroN(writer io.Writer, size int) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var Discard io.Writer = discard{}
View Source
var ZeroBytes = make([]byte, 1024)
Deprecated: wtf is this?
Functions ¶
func FileExists
deprecated
func MkdirParent ¶ added in v0.5.0
func ReadUVariant
deprecated
func ReadVString
deprecated
func ToByteReader
deprecated
func ToByteReader(reader io.Reader) io.ByteReader
Deprecated: create a *bufio.Reader instead.
func UVariantLen
deprecated
func WriteBytes
deprecated
func WriteString
deprecated
func WriteUVariant
deprecated
func WriteVString
deprecated
func WriteZeroN
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.