Standard library / archive/tar
archive/tar.Format.String()
Render the format flag as a human-readable name. Expected stdout: 'PAX\n'.
Formal Syntax & Structure
go syntaxgo
func (f Format) String() stringReturn Value
string
Human-readable representation.
Working Example
Example Snippetgo
package main
import ( "archive/tar" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(tar.FormatPAX.String()) }