realpath

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Types

type Config

type Config struct {
	XML    bool
	JSON   bool
	Plain  bool
	Pretty bool
}

type RealpathEntry

type RealpathEntry struct {
	XMLName  xml.Name `xml:"entry"`
	Path     string   `xml:"path,attr"`
	Absolute string   `xml:"absolute,attr"`
	Exists   string   `xml:"exists,attr"`
	Type     string   `xml:"type,attr"`
}

type RealpathError

type RealpathError struct {
	XMLName xml.Name `xml:"error"`
	Code    int      `xml:"code,attr"`
	Msg     string   `xml:"msg,attr"`
	Path    string   `xml:"path,attr"`
}

type RealpathResult

type RealpathResult struct {
	XMLName   xml.Name        `xml:"realpath"`
	Paths     []RealpathEntry `xml:"entry,omitempty"`
	Timestamp int64           `xml:"timestamp,attr"`
	Errors    []RealpathError `xml:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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