
1. Support unparam linter and fix found issues 2. Replace forked mvdan.cc/lint and mvdan.cc/interfacer with the upstream ones 3. Minimize forked megacheck: move the most of it's code to this repo 4. Use golang.org/x/tools/go/ssa import path instead of custom fork paths 5. In golang.org/x/tools/go/{ssa,callgraph} use changed code from honnef.co/go/tools 6. Add megacheck.check-unexported option: it found some issues in the repo, fixed them all
18 lines
260 B
Go
18 lines
260 B
Go
package version
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
const Version = "devel"
|
|
|
|
func Print() {
|
|
if Version == "devel" {
|
|
fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0]))
|
|
} else {
|
|
fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), Version)
|
|
}
|
|
}
|