helpers

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BecauseQuantity added in v0.4.0

func BecauseQuantity(name string, expected, actual int) string

func Ensure added in v0.1.5

func Ensure(root string) error

func JoinCwd

func JoinCwd(segments ...string) string

func Log

func Log() string

func Normalise

func Normalise(p string) string

func Path

func Path(parent, relative string) string

func Reason

func Reason(name string) string

func Repo

func Repo(relative string) string

func Root

func Root() string

Types

type CustomFilter

type CustomFilter struct {
	Name  string
	Value string
}

func (*CustomFilter) Description

func (f *CustomFilter) Description() string

func (*CustomFilter) IsApplicable

func (f *CustomFilter) IsApplicable(_ *nav.TraverseItem) bool

func (*CustomFilter) IsMatch

func (f *CustomFilter) IsMatch(item *nav.TraverseItem) bool

func (*CustomFilter) Scope

func (f *CustomFilter) Scope() nav.FilterScopeBiEnum

func (*CustomFilter) Source

func (f *CustomFilter) Source() string

func (*CustomFilter) Validate

func (f *CustomFilter) Validate()

type Directory added in v0.1.5

type Directory struct {
	XMLName     xml.Name    `xml:"directory"`
	Name        string      `xml:"name,attr"`
	Files       []File      `xml:"file"`
	Directories []Directory `xml:"directory"`
}

type DummyCreator added in v0.1.12

type DummyCreator struct {
	Invoked bool
}

func (*DummyCreator) Create added in v0.1.12

func (dc *DummyCreator) Create(_ *i18n.LanguageInfo, _ string) (*i18n.Localizer, error)

type File added in v0.1.5

type File struct {
	XMLName xml.Name `xml:"file"`
	Name    string   `xml:"name,attr"`
	Text    string   `xml:",chardata"`
}

type Tree added in v0.1.5

type Tree struct {
	XMLName xml.Name  `xml:"tree"`
	Root    Directory `xml:"directory"`
}

Jump to

Keyboard shortcuts

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