parser

package
v0.0.0-...-71a3135 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package parser implements a parser for parsing file names and returning metadata about them. This parser is purely designed for usage with books, primarily Manga.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	// Title is the title of the manga. Used as a sorting key for
	// organizing manga.
	Title,

	FileName string

	// Volume is the volume number that this series is apart of. When this
	// is unable to be determined, this will be 0.
	Volume,

	PageNumber,

	AbsolutePageNumber,

	Chapter uint
}

Page is a struct that contains metadata about a page in a manga.

func Parse

func Parse(name string) (Page, error)

Parse parses the provided file name and returns a Page.

func (Page) String

func (p Page) String() string

String implements fmt.Stringer for Page.

Jump to

Keyboard shortcuts

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