package api

import "cmd/api"

Package api computes the exported API of a set of Go packages. It is only a test, not a command, nor a usefully importable package.

Index

Functions

func Check

func Check(t *testing.T)

Types

type Walker

type Walker struct {
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(context *build.Context, root string) *Walker

func (*Walker) Features

func (w *Walker) Features() (fs []string)

func (*Walker) Import

func (w *Walker) Import(name string) (*types.Package, error)

Import implements types.Importer.

func (*Walker) ImportFrom

func (w *Walker) ImportFrom(fromPath, fromDir string, mode types.ImportMode) (*types.Package, error)

ImportFrom implements types.ImporterFrom.

Source Files

api.go

Version
v1.20.5
Published
Jun 1, 2023
Platform
darwin/amd64
Imports
23 packages
Last checked
25 seconds ago

Tools for package owners.