check_interface

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 5 Imported by: 0

README

Check Interface

Test Release

どの関数にも実装されていないインターフェイスに対して、警告を出す静的解析ツールです。 インターフェイスに実装されているメソッドと実装のメソッドのシグネチャが微妙に違うなどで、 インターフェイスの先のメソッドが呼び出せないような時にぬるぽが出るのが嫌だったので、作成しました。

Getting Started

How to install
go get github.com/riita10069/check_interface
Usage Example
 go vet -vettool=`which check_interface` [package path]

複数のパッケージのチェックをしたい場合は、

 go vet -vettool=`which check_interface` [package path1] [package path2] [package path3]

のように書くことで実行可能です。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "check_interface",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer is ...

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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