dir

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDir

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

func NewBaseDir

func NewBaseDir(raw string) *BaseDir

func (*BaseDir) Abs

func (d *BaseDir) Abs() string

func (*BaseDir) FilterSubDirs

func (d *BaseDir) FilterSubDirs(ext string) ([]string, error)

func (*BaseDir) GoString

func (d *BaseDir) GoString() string

func (*BaseDir) MarshalJSON

func (d *BaseDir) MarshalJSON() ([]byte, error)

func (*BaseDir) String

func (d *BaseDir) String() string

type Dir

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

func NewDir

func NewDir(raw string, baseDir *BaseDir) *Dir

func (*Dir) Abs

func (d *Dir) Abs() string

func (*Dir) BaseDir

func (d *Dir) BaseDir() *BaseDir

func (*Dir) GoString

func (d *Dir) GoString() string

func (*Dir) MarshalJSON

func (d *Dir) MarshalJSON() ([]byte, error)

func (*Dir) Rel

func (d *Dir) Rel() string

func (*Dir) String

func (d *Dir) String() string

type Path

type Path interface {
	Abs() string
	Rel() string
}

Jump to

Keyboard shortcuts

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