modsfile

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultReleaseType = twitchapi.ReleaseTypes["release"]

DefaultReleaseType is the release type used when one isn't specified.

Functions

func Parse

func Parse(file io.Reader) (mods map[int]Mod, excls []*regexp.Regexp, version string, err error)

Parse returns a map of Mods and a slice of exclusions.

func ParseFile

func ParseFile(fileName string) (map[int]Mod, []*regexp.Regexp, string, error)

ParseFile opens the file named fileName and calls Parse.

Types

type Mod

type Mod struct {
	ModVersion  int
	ReleaseType int
}

Mod represents additional information about a mod.

Jump to

Keyboard shortcuts

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