package
0.0.0-20241116165817-883d5d7d379c
Repository: https://github.com/ddkwork/toolbox.git
Documentation: pkg.go.dev
# Functions
CloseIgnoringErrors closes the closer and ignores any error it might produce.
ContextSleep sleeps for the specified time, or until the context is done.
DiscardAndCloseIgnoringErrors reads any content remaining in the body and discards it, then closes the body.
NewBOMStripper strips a leading UTF-8 BOM marker from the input.
NewLineWriter creates a new LineWriter.
RetrieveData loads the bytes from the given file path or URL of type file, http, or https.
RetrieveDataFromURL loads the bytes from the given URL of type file, http, or https.
RetrieveDataFromURLWithContext loads the bytes from the given URL of type file, http, or https.
RetrieveDataWithContext loads the bytes from the given file path or URL of type file, http, or https.
# Structs
ByteBuffer is a variable-sized buffer of bytes with Write and Insert methods.
LineWriter buffers its input into lines before sending each line to an output function without the trailing line feed.
TeeWriter is a writer that writes to multiple other writers.