subjectparser

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 3 Imported by: 2

README

subjectparser.go

An NNTP binary file subject parser module for go (golang).

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)

the Parse method analyses a given string and returns the Subject structure

Jump to

Keyboard shortcuts

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