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.