api

package standard library
go1.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in go1.20

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 added in go1.13

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

ImportFrom implements types.ImporterFrom.

Jump to

Keyboard shortcuts

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