filesystem

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileWithSize

func CreateFileWithSize(filename string, size int64) (*os.File, error)

CreateFileWithSize creates a new file with size filled empty 0 bytes Since we will be writing chunks, we don't close the file

func WriteFileChunk

func WriteFileChunk(file *os.File, buffer []byte, offset int64) error

WriteFileChunk write to a file a buffer with a offset

Types

This section is empty.

Jump to

Keyboard shortcuts

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