file

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 12 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 {
	WD, Path string
	// contains filtered or unexported fields
}

func New

func New(wd, path string) (f *File, err error)

func (*File) Abs

func (f *File) Abs() string

func (*File) Compare added in v0.0.2

func (f *File) Compare(other *File) int

func (*File) Equal

func (f *File) Equal(other *File) bool

func (*File) Exists added in v0.2.0

func (f *File) Exists() (bool, error)

func (*File) FirstLine

func (f *File) FirstLine() (line string, err error)

func (*File) Info

func (f *File) Info() (info os.FileInfo, err error)

func (*File) IsDir

func (f *File) IsDir() bool

func (*File) Name

func (f *File) Name() string

func (*File) Rel

func (f *File) Rel(to string) (rel string, err error)

func (*File) Set

func (f *File) Set(path string) error

func (*File) String

func (f *File) String() string

Jump to

Keyboard shortcuts

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