subjectparser

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subject

type Subject struct {
	Subject       string // full subject
	Header        string // header (remaining text before the filename)
	Filename      string // filename with extension (in the subject it is usually between quotes)
	Basefilename  string // filename without extension(s)
	File          int    // number of the file in the file set (=X in [X/Y])
	TotalFiles    int    // number of total files in the file set (=Y in [X/Y])
	Segment       int    // number of the segment of this file (=X in (X/Y))
	TotalSegments int    // number of total segments for this file (=Y in (X/Y))
}

func Parse

func Parse(s string) (Subject, error)

Jump to

Keyboard shortcuts

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