Documentation
¶
Overview ¶
Package zipfile reads & parses zip archives
outline: zipfile
zipfile reads & parses zip archives
functions:
ZipFile(data)
opens an archive for reading
types:
ZipFile
a zip archive object
methods:
namelist() list
return a list of files in the archive
open(filename string) ZipInfo
open a file for reading
params:
filename string
name of the file in the archive to open
ZipInfo
methods:
read() string
read the file, returning it's string representation
Package zipfile defines zipfileimatical functions, it's intended to be a drop-in subset of python's zipfile module for starlark: https://docs.python.org/3/library/zipfile.html
Index ¶
Constants ¶
View Source
const ModuleName = "zipfile.star"
ModuleName defines the expected name for this Module when used in starlark's load() function, eg: load('zipfile.star', 'zipfile')
Variables ¶
This section is empty.
Functions ¶
func LoadModule ¶
func LoadModule() (starlark.StringDict, error)
LoadModule loads the zipfile module. It is concurrency-safe and idempotent.
Types ¶
Click to show internal directories.
Click to hide internal directories.