wizinterpreter

package
v0.0.0-...-e8c8c4a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLevels = 32

MaxLevels is the maximum level of magic rules that are interpreted

Variables

This section is empty.

Functions

This section is empty.

Types

type InterpretContext

type InterpretContext struct {
	Logf LogFunc
	Book wizparser.Spellbook
}

InterpretContext holds state for the interpreter

func (*InterpretContext) Identify

func (ctx *InterpretContext) Identify(sr *wizutil.SliceReader) ([]string, error)

Identify follows the rules in a spellbook to find out the type of a file

type LogFunc

type LogFunc func(format string, args ...interface{})

LogFunc logs something somewhere

Jump to

Keyboard shortcuts

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