api

package
v0.0.0-...-75185d0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppFs = afero.NewOsFs()

Functions

func IsFile

func IsFile(path string) (bool, error)

func ReadFile

func ReadFile(path string) (afero.File, error)

Types

type Entry

type Entry struct {
	Name      string
	Path      string /// Should always be absolute
	CreatedAt time.Time
	Modified  Modified
	IsDir     bool
}

func ListDir

func ListDir(path string) ([]Entry, error)

type Modified

type Modified struct {
	By int
	At time.Time
}

Jump to

Keyboard shortcuts

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