demozoo

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package demozoo handles downloads fetched from Demozoo Productions links.

Index

Constants

View Source
const (
	FileDiz = "file_id.diz" // Filename for a common, brief description of the content of archive.
)

Variables

View Source
var ErrNoSrc = errors.New("no src filename was given")

Functions

func DOS

func DOS(w io.Writer, name string, files content.Contents, varNames *[]string) string

DOS attempts to discover a software package starting executable from a collection of files.

func MoveText

func MoveText(w io.Writer, cfg conf.Config, src, uuid string) error

MoveText moves the name file to a [uuid].txt named file.

func NFO

func NFO(name string, files content.Contents, varNames *[]string) string

NFO attempts to discover a archive package NFO or information textfile from a collection of files.

Types

type Data

type Data struct {
	DOSee string // Table dosee_run_program column.
	NFO   string // Table retrotxt_readme column.
}

Data extracted from an archive.

func (Data) String

func (d Data) String() string

type Finds

type Finds map[string]Usability

Finds are a collection of matched filenames and their usability ranking.

func (Finds) Top

func (f Finds) Top() string

Top returns the most usable filename from a collection of finds.

type Usability

type Usability uint

Usability of search, filename pattern matches.

const (
	Lvl1 Usability = iota + 1 // Lvl1 is the highest usability.
	Lvl2
	Lvl3
	Lvl4
	Lvl5
	Lvl6
	Lvl7
	Lvl8
	Lvl9 // Lvl9 is the least usable.
)

Jump to

Keyboard shortcuts

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