package main import ( "archive/zip" "fmt" ) func main() { // Open the ZIP archive r, err := zip.OpenReader("archive.zip") if err != nil { panic(err) } defer r.Close() // Print info about each file in the archive for _, f := range r.File { fmt.Printf("%s (%d bytes)\n", f.Name, f.FileInfo().Size()) } }This example opens the "archive.zip" file using the `zip.OpenReader` function, reads the file information for each file in the archive using the `FileInfo()` method of each file's `*zip.File` struct, and prints out the file name and size. The package library used in this example is "archive/zip".