dirname

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 DirnameEntry

type DirnameEntry struct {
	XMLName xml.Name `xml:"entry"`
	Path    string   `xml:"path,attr"`
	Dir     string   `xml:"dir,attr"`
}

type DirnameError

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

type DirnameResult

type DirnameResult struct {
	XMLName   xml.Name       `xml:"dirname"`
	Paths     []DirnameEntry `xml:"entry,omitempty"`
	Timestamp int64          `xml:"timestamp,attr"`
	Errors    []DirnameError `xml:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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