Registry / utility / blakesmith-ar

blakesmith-ar

JSON →
library0.0.0-20190502131153-809d4375e1fbgogounverified

Package ar provides functions for reading and writing ar archives.

go get github.com/blakesmith/ar
INSTALL
IMPORT
SIG · BLAKESMITH-AR
B
blakesmith-ar
utilitygov0.0.0-20190502131153-809d4375e1fb
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ar
github.com/blakesmith/ar

Writes an ar archive with a single file

package main import ( "bytes" "fmt" "github.com/blakesmith/ar" ) func main() { var buf bytes.Buffer w := ar.NewWriter(&buf) w.WriteGlobalHeader() hdr := &ar.Header{Name: "test.txt", Size: 5} w.WriteHeader(hdr) w.Write([]byte("hello")) fmt.Println(buf.Bytes()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190502131153-809d4375e1fblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
blakesmith-ar — go get blakesmith-ar · libregistry