1 Star 0 Fork 0

lonely/gometalinter

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
lint.go 587 Bytes
Copy Edit Raw Blame History
Alec Thomas authored 2017-09-09 13:03 . Update all deps (#344).
// Copyright (c) 2017, Daniel Martí <mvdan@mvdan.cc>
// See LICENSE for licensing information
// Package lint defines common interfaces for Go code checkers.
package lint // import "mvdan.cc/lint"
import (
"go/token"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/ssa"
)
// A Checker points out issues in a program.
type Checker interface {
Program(*loader.Program)
Check() ([]Issue, error)
}
type WithSSA interface {
ProgramSSA(*ssa.Program)
}
// Issue represents an issue somewhere in a source code file.
type Issue interface {
Pos() token.Pos
Message() string
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lonely0422/gometalinter.git
git@gitee.com:lonely0422/gometalinter.git
lonely0422
gometalinter
gometalinter
v3.0.0

Search