paths

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMarkdownFile

func IsMarkdownFile(path string, mdExts []string) bool

func IsMarkdownURI

func IsMarkdownURI(uri string) bool

func IsMditaMapFile

func IsMditaMapFile(path string, mapExts []string) bool

func MatchesURL

func MatchesURL(id DocID, url string) bool

func PathToURI

func PathToURI(path string) string

func RelPath

func RelPath(base, target string) string

func Slugify

func Slugify(s string) string

func URIToPath

func URIToPath(uri string) (string, error)

Types

type DocID

type DocID struct {
	URI     string
	RelPath string
	Stem    string
	Slug    Slug
}

func DocIDFromURI

func DocIDFromURI(uri, rootURI string) DocID

type Slug

type Slug string

func SlugOf

func SlugOf(s string) Slug

func (Slug) Contains

func (s Slug) Contains(sub Slug) bool

func (Slug) String

func (s Slug) String() string

Jump to

Keyboard shortcuts

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