demozoo

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

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 source filename was provided")

Functions

func DOS

func DOS(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(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