Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

dominikh/implements

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

This program has been deprecated. Consider using guru instead, which can answer the same question as this tool, and many more.

implements

implements is a command line tool that will tell you which types implement which interfaces, or which interfaces are implemented by which types.

Install

go get honnef.co/go/implements

Usage

implements -help to get a description of the use flags and example usage.

But…

Yes, there are potentially ℙ(M) unique interfaces (all combinations of method signatures), and an unlimited amount of not-unique named and unnamed interfaces. That, however, isn't the scope of this tool. This is more of a "what types that I care about implement io.Reader?" or a "does my type really implement http.File?" – This would be especially useful for early discovery of the standard libraries, enriching Go documentation and assisting editors and IDEs in providing live feedback and possibly auto completion.

Again, the idea is not to run this unconditionally on all code there is, but on for example the standard library and specific packages/types you care about.

About

Check which interfaces a Go type implements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages