formats: github.com/martinlindhe/formats Index | Files | Directories

package formats

import "github.com/martinlindhe/formats"

Index

Package Files

layout.go util.go

func ParseLayout Uses

func ParseLayout(file *os.File) (*parse.ParsedLayout, error)

ParseLayout returns a ParsedLayout for the file

type MatchingParsers Uses

type MatchingParsers []parse.ParsedLayout

MatchingParsers is a list parsed layouts with different Parser

func MatchAll Uses

func MatchAll(file *os.File) (MatchingParsers, error)

MatchAll returns all matching parsers

func (*MatchingParsers) ChoseOne Uses

func (mp *MatchingParsers) ChoseOne(file *os.File) (*parse.ParsedLayout, error)

ChoseOne asks the user to select one of the matching parsers

func (*MatchingParsers) First Uses

func (mp *MatchingParsers) First() *parse.ParsedLayout

First returns the first matching Parser

type Parser Uses

type Parser func(*parse.Checker) (*parse.ParsedLayout, error)

Parser is a specialized parser for a file format

Directories

PathSynopsis
parse
parse/archive
parse/av
parse/bin
parse/doc
parse/exe
parse/font
parse/image
parse/macos
parse/windows

Package formats imports 18 packages (graph). Updated 2017-10-18. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).