basename

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 9 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 BasenameEntry

type BasenameEntry struct {
	XMLName   xml.Name `xml:"entry"`
	Path      string   `xml:"path,attr"`
	Base      string   `xml:"base,attr"`
	Stem      string   `xml:"stem,attr"`
	Extension string   `xml:"extension,attr"`
}

type BasenameError

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

type BasenameResult

type BasenameResult struct {
	XMLName   xml.Name        `xml:"basename"`
	Paths     []BasenameEntry `xml:"entry,omitempty"`
	Timestamp int64           `xml:"timestamp,attr"`
	Errors    []BasenameError `xml:"error,omitempty"`
}

type Config

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

Jump to

Keyboard shortcuts

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