Help us shape the future of Go! Take the 2026 Go Developer Survey

libpath

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package libpath defines the shared virtual library names exposed by clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collection

func Collection(name, filename string) string

Collection places a safe filename beneath a collection directory.

func Disambiguate

func Disambiguate(items []NamedKey) map[core.RatingKey]string

Disambiguate returns one stable name per key. Names that collide on case-insensitive filesystems acquire their rating key as a suffix.

func Episode

func Episode(title core.Title) string

func Movie

func Movie(title core.Title) string

func MovieName

func MovieName(title core.Title) string

func Safe

func Safe(value string) string

Safe converts a title to one cross-platform path component. It never returns a traversal component; callers must still detect duplicate names per folder.

func Season

func Season(show string, season int) string

func Show

func Show(title core.Title) string

Types

type NamedKey

type NamedKey struct {
	Name string
	Key  core.RatingKey
}

NamedKey names a sibling using its stable catalogue identity.

Jump to

Keyboard shortcuts

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