formats

package module
v0.0.0-...-5a59a6e Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 18 Imported by: 0

README

About

Travis-CI codecov.io GoDoc Go Report Card

formats is a command line file explorer / hex viewer, written in Golang.

Demo: https://asciinema.org/a/7uce44hzwvpi5dijxh0jpcc7g

Installation

go get -u github.com/martinlindhe/formats/cmd/formats

Keyboard navigation

  • Left/Right arrow keys to navigate between top-level fields (turquoise)
  • Enter to select current top-level field
  • Left/Right arrow keys to navigate between sub-level fields (yellow)
  • Escape to leave sub-level navigation
  • Q to quit the program

Supported formats

Please see the status matrix.

License

Under MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLayout

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

ParseLayout returns a ParsedLayout for the file

Types

type MatchingParsers

type MatchingParsers []parse.ParsedLayout

MatchingParsers is a list parsed layouts with different Parser

func MatchAll

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

MatchAll returns all matching parsers

func (*MatchingParsers) ChoseOne

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

ChoseOne asks the user to select one of the matching parsers

func (*MatchingParsers) First

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

First returns the first matching Parser

type Parser

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

Parser is a specialized parser for a file format

Directories

Path Synopsis
cmd
av
bin
doc
exe

Jump to

Keyboard shortcuts

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