helper

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFileTooBig = errors.New("file size is too big")

ErrFileTooBig is returned when file size is too big.

Functions

func ReadFileSafeSize

func ReadFileSafeSize(filename string, kbSize int64) ([]byte, error)

ReadFileSafeSize reads file and returns its content if file size is less than kbSize.\

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL