Skip to content

unixpickle/seektar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seektar GoDoc

Dynamically generated tarballs that support seeking. This can be used from a server to generate downloads for entire directories, while supporting Byte-Range requests.

Example

Here's an example of how to use seektar:

package main

import "github.com/unixpickle/seektar"

func main() {
    tarResult, _ := seektar.Tar("/path/to/directory", "directory")
    tarFile, _ := tarResult.Open()
    defer tarFile.Close()
    // tarFile is an io.Reader, io.Seeker, and io.Closer.
    // It dynamically generates tar data.
}

About

Seekable dynamic tarballs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages