npck

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

README

PkgGoDev GitHub Actions CI Status GitHub Actions CodeQL Status Coverage Status Codebeat badge

InstallationUsage exampleCI StatusLicense


npck is a Go package for unpacking various types of archives.

Installation

Make sure you have a working Go 1.18+ workspace (instructions), then:

go get -d github.com/essentialkaos/npck

For update to the latest stable release, do:

go get -d -u github.com/essentialkaos/npck

Usage example

package main

import (
  "fmt"

  "github.com/essentialkaos/npck/tgz"
)

func main() {
  err := tgz.Unpack("file.tar.gz", "/home/john")

  if err != nil {
    panic("Can't unpack file: %v", err)
  }

  fmt.Printf("File %s successfully unpacked!\n")
}

CI Status

Branch Status
master CI
develop CI

License

Apache License, Version 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package tar provides method for unpacking tar files
Package tar provides method for unpacking tar files
Package tbz provides method for unpacking tar.bz2 files
Package tbz provides method for unpacking tar.bz2 files
Package tgz provides method for unpacking tar.gz files
Package tgz provides method for unpacking tar.gz files
Package txz provides method for unpacking tar.xz files
Package txz provides method for unpacking tar.xz files
Package tzst provides method for unpacking tar.zst files
Package tzst provides method for unpacking tar.zst files

Jump to

Keyboard shortcuts

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