Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotJAR = errors.New("Given file is not a JAR file")
View Source
var ErrWrongManifestFormat = errors.New("Can't parse manifest file (wrong format)")
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
func ReadFile ¶
ReadFile reads JAR file and parses manifest file
Example ¶
manifest, err := ReadFile("wagon-file-3.3.2.jar") fmt.Printf("Error: %v\n", err) fmt.Printf("Specification-Vendor: %s\n", manifest["Specification-Vendor"]) fmt.Printf("Implementation-Vendor-Id: %s\n", manifest["Implementation-Vendor-Id"]) fmt.Printf("Specification-Version: %s\n", manifest["Specification-Version"])
Output:
Click to show internal directories.
Click to hide internal directories.