ls

package
v0.0.0-...-9c0138c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDirectory = "directory"
	TypeRegular   = "regular"
	TypeSymLink   = "symlink"
	TypeHardLink  = "hardlink"
	TypeNamedPipe = "namedpipe"
)

Variables

This section is empty.

Functions

func Main

func Main(stdout io.Writer, args []string) error

Types

type Directory

type Directory struct {
	Entries []Entry `json:"entries"`
	// contains filtered or unexported fields
}

type Entry

type Entry struct {
	Name       string `json:"name"`
	Mode       string `json:"mode"`
	ModeOctal  int    `json:"mode_octal"`
	User       string `json:"user"`
	Group      string `json:"group"`
	Uid        uint32 `json:"uid"`
	Gid        uint32 `json:"gid"`
	Type       string `json:"type"`
	Size       int64  `json:"size"`
	ModifyTime int64  `json:"modify-time"`
	ModTime    time.Time
}

type Option

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

func NewFlagSet

func NewFlagSet() (*flag.FlagSet, *Option)

Jump to

Keyboard shortcuts

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