scanner

package
v0.0.0-...-db946dc Latest Latest
Warning

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

Go to latest
Published: May 10, 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 Battle

type Battle struct {
	Name    string
	Entries []Entry
}

func GetAllBattles

func GetAllBattles(
	getNamesFunc func() ([]string, error),
	getBattleFunc func(name string) (Battle, error),
) ([]Battle, error)

type Entry

type Entry struct {
	Author   string
	Title    string
	Filename string
	Path     string
}

type FSScanner

type FSScanner struct {
	Fsys fs.FS
}

FSScanner .

func (*FSScanner) GetBattle

func (s *FSScanner) GetBattle(name string) (Battle, error)

func (*FSScanner) GetBattleNames

func (s *FSScanner) GetBattleNames() ([]string, error)

Jump to

Keyboard shortcuts

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