Documentation
¶
Index ¶
- Variables
- func CalculateGiB(size int64) (int64, error)
- func CalculateKiB(size int64) (int64, error)
- func CalculateMiB(size int64) (int64, error)
- func Do(url string, userAgent string, limit int64) (string, error)
- func ReadLimitedBytes(r io.Reader, limit int64) ([]byte, error)
- func ReadLimitedBytesWithSizeCheck(r io.Reader, limit int64) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ERR_CONTENT_TO_LARGE = errors.New("err content to large")
View Source
var ERR_NEGATIVE_SIZE = errors.New("err negative size")
View Source
var ERR_STATUS_NOT_OK = errors.New("status not ok")
Functions ¶
func CalculateGiB ¶
func CalculateKiB ¶
func CalculateMiB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.