genwrap

package
v0.0.0-...-89480e5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenGo

func GenGo(pkgPath, outPkgName string, skipDeps bool) ([]byte, error)

GenGo generates a wrapper package naemd outPkgName that registers the exported symbols of pkgPath with the global map gopkg.Pkgs.

Any other packages that pkgPath depends on for defining its exported symbols are also registered, unless skipDeps is set.

Types

type Data

type Data struct {
	OutPkgName string
	Pkgs       []DataPkg
}

type DataPkg

type DataPkg struct {
	Name       string
	QuotedName string
	Exports    map[string]string
}

Jump to

Keyboard shortcuts

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