underline

package
v0.0.0-...-ee163f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseExtname = ".7z"
)
View Source
var (
	ErrInvalidFullExtname = errors.New("error: invalid full extname")
)
View Source
var (
	ErrUnderlineParse = errors.New("error: underline/filename parse error")
)

Functions

func NewExtname

func NewExtname(base, full string) v.Result[Extname, error]

func NewFilename

func NewFilename(p string, category v.Option[string]) v.Result[Filename, error]

func NewUnderline

func NewUnderline(id string, category v.Option[string]) v.Result[Underline, error]

Types

type Extname

type Extname interface {
	Flags() Flags
	Full() string
	Base() string
	String() string
}

type Filename

type Filename interface {
	Underline
	Extname() Extname
	String() string
	ToUnderline() Underline
}

type Flags

type Flags interface {
	String() string
	Has(rune) bool
	Size() int
	All() utils.Iterator[rune]
}

func NewFlags

func NewFlags(flags string) Flags

type Underline

type Underline interface {
	Name() string
	Version() u.Version
	Author() string
	Category() v.Option[string]
	String() string
	String3() string
}

Jump to

Keyboard shortcuts

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