extract

package
v0.0.0-...-9b60cd8 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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(importPath string, p *types.Package, setFuncs []string) ([]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