Standard library / archive/tar
archive/tar.FormatUSTAR
POSIX USTAR dialect with restricted field lengths and no subsecond time. Expected stdout: '2\n'.
Formal Syntax & Structure
go syntaxgo
const FormatUSTAR Format = 2Working Example
Example Snippetgo
package main
import ( "archive/tar" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(int(tar.FormatUSTAR)) }