parsers

package
v0.0.0-...-2b5ea0c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata string
const (
	MetadataType             Metadata = "type"
	MetadataSize             Metadata = "size"
	MetadataPermissions      Metadata = "perm"
	MetadataLastModifiedDate Metadata = "modify"
)

type MetadataEntryType

type MetadataEntryType string
const (
	MetadataEntryTypeFile      MetadataEntryType = "file"
	MetadataEntryTypeDir       MetadataEntryType = "dir"
	MetadataEntryTypeListedDir MetadataEntryType = "cdir"
	MetadataEntryTypeParentDir MetadataEntryType = "pdir"
)

type Options

type Options struct {
	Location *time.Location
}

type Parser

type Parser interface {
	Parse(data string, options *Options) (*entities.Entry, error)
}

func NewGenericListParser

func NewGenericListParser() Parser

Jump to

Keyboard shortcuts

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