🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

modernc.org/surface

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modernc.org/surface

Go Modules
Version
v0.0.5
Version published
Created
Source

surface

Command surface provides rudimental checking of API changes/differences.

Installation

 $ go install modernc.org/surface@latest

Usage

To produce a list of exported symbols for a package in the current directory issue

 $ surface

or perhaps

 $ surface > foo

To check for removed symbols from two lists issue

 $ surface old new

This reports symbols listed in old but not in new.

Options

 -tags <csv-list>

This option has the same meaning as in the go tool. Use it to add build tags that may change which files will be considered a part of the package.

Notes

The tool works on parser ASTs and considers only exported names. No typechecking is performed, it does not understand nor care about changes in definitions.

The package loader respects environment variables GOOS and GOARCH. Files matching *_test.go are ignored.

FAQs

Package last updated on 04 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts