file

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 4 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 {
	Dir       string
	Name      string
	Extension string
}

File ...

func New

func New(file string) File

New creates a new File instance from a filepath string

func (File) FullName

func (f File) FullName() string

FullName returns a string of the filename + extension

func (File) FullPath

func (f File) FullPath() string

FullPath returns a string of the filepath + filename + extension

func (File) Read

func (f File) Read() ([]byte, error)

Read returns the file's data

func (File) Write

func (f File) Write(data []byte, perm os.FileMode) error

Write writes data to the file

Jump to

Keyboard shortcuts

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