file

package
v0.0.0-...-92c1b66 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE = 1024
	KB   = (BYTE * BYTE)
	MB   = (KB * BYTE)
	GB   = (MB * BYTE)
	TB   = (GB * BYTE)
	PB   = (TB * BYTE)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name      string
	Size      int
	ReadBytes int
	Type      string
	Path      string
	Content   []byte
	Splited   [][]byte
}

func New

func New(path string) *File

func (*File) Join

func (f *File) Join() *File

func (*File) Open

func (f *File) Open() *File

func (*File) Split

func (f *File) Split(max int, maxType string) *File

Jump to

Keyboard shortcuts

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