apiguard

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package apiguard provides source-level assertions for public Go APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoPackageReferences

func NoPackageReferences(t testing.TB, directory string, blocked map[string]string)

NoPackageReferences fails when an exported declaration refers to a blocked imported package. blocked maps import paths to their declared package names.

func PackageReferences

func PackageReferences(directory string, blocked map[string]string) ([]string, error)

PackageReferences returns source positions where exported declarations refer to blocked imported packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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