Standard library / archive/tar

archive/tar.Format

Format identifies USTAR, PAX, GNU or unknown TAR dialect. Select PAX for extended names or subsecond timestamps when supported. Expected stdout: 'PAX\n'.

Formal Syntax & Structure

go syntaxgo
type Format int

Working Example

Example Snippetgo
package main
import (  "archive/tar"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { var f tar.Format = tar.FormatPAX; fmt.Println(f) }
Go Reference