file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func New

func New() *File

func (*File) Close

func (f *File) Close() error

Close closes the file.

func (*File) CreateDir

func (f *File) CreateDir(dirs ...string) (string, error)

CreateDir creates a new directory if not exist.

func (*File) OpenFile

func (f *File) OpenFile(path ...string) (*os.File, error)

OpenFile opens a file which is given as parameter.

Jump to

Keyboard shortcuts

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