ar

package
v0.0.0-...-35b9734 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2014 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

package ar implements reading of ar archives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Name  string
	Stamp time.Time
	UID   int
	GID   int
	Mode  os.FileMode
	Size  int64
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Next

func (r *Reader) Next() (*Header, error)

Next advances to the next entry in the ar archive

func (*Reader) Read

func (r *Reader) Read(s []byte) (int, error)

Read reads from the current entry in the archive. Upon EOF, Next should be called

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳