container

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MediaTypePackageFile = `application/oebps-package+xml`

Variables

View Source
var ErrContentsPathNotFound = errors.New("contents path not found")

Functions

func GetContentsPath

func GetContentsPath(zip *zip.Reader) (string, error)

Types

type Container

type Container struct {
	XMLName    xml.Name   `xml:"container"`
	Roootfiles []Rootfile `xml:"rootfiles>rootfile"`
}

type Rootfile

type Rootfile struct {
	Path      string `xml:"full-path,attr"`
	MediaType string `xml:"media-type,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL