pkg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package pkg performs AST, type and licensing analysis on packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsError

func IsError(typ types.Type) bool

func Mangle

func Mangle(typ types.Type) string

Types

type FuncInfo

type FuncInfo struct {
	*types.Func
	*ast.FuncDecl
}

FuncInfo holds type and syntax information about a function.

func (FuncInfo) Signature

func (f FuncInfo) Signature() *types.Signature

type Info

type Info struct {
	Funcs []FuncInfo

	Unpackers unpackers
	Packers   packers
}

Info holds information about the functions in a package.

func Analyse

func Analyse(path, allowed string, verbose bool) (*Info, error)

func (*Info) Pkg

func (p *Info) Pkg() *types.Package

Jump to

Keyboard shortcuts

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