extract

package
v0.0.0-...-23b874d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package extract generates wrappers of package exported symbols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenContent

func GenContent(destPkg, importPath string, importSelf bool, p *types.Package, setFuncs []string, exported map[types.Object]bool) ([]byte, error)

func GetMinor

func GetMinor(part string) string

GetMinor returns the minor part of the version number.

Types

type Method

type Method struct {
	Name, Param, Result, Arg, Ret string
}

Method stores information for generating interface wrapper method.

type Val

type Val struct {
	Name string // "package.name"
	Addr bool   // true if symbol is a Var
}

Val stores the value name and addressable status of symbols.

type Wrap

type Wrap struct {
	Name   string
	Method []Method
}

Wrap stores information for generating interface wrapper.

Jump to

Keyboard shortcuts

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