arprint

package
v0.0.0-...-a8a07f9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

ex10.2 detects and reads zip and tar archives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(file *os.File) (io.Reader, error)

func RegisterFormat

func RegisterFormat(name, magic string, magicOffset int, f NewReader)

We could probably just try opening readers instead of checking magic numbers.

Types

type NewReader

type NewReader func(*os.File) (io.Reader, error)

Directories

Path Synopsis
cmd
arprint
Print the names and contents of the files in a tar or zip archive.
Print the names and contents of the files in a tar or zip archive.

Jump to

Keyboard shortcuts

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