importer

package
v0.0.0-...-84e629c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2014 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

package importer implements an exporter and importer for Go export data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportData

func ExportData(pkg *types.Package) []byte

ExportData serializes the interface (exported package objects) of package pkg and returns the corresponding data. The export format is described elsewhere (TODO).

func ImportData

func ImportData(imports map[string]*types.Package, data []byte) (int, *types.Package, error)

ImportData imports a package from the serialized package data and returns the number of bytes consumed and a reference to the package. If data is obviously malformed, an error is returned but in general it is not recommended to call ImportData on untrusted data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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