Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 484 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 484 Bytes

noioutil

noioutil finds files using the "io/ioutil" package.

Installation

go install github.com/le0tk0k/noioutil/cmd/noioutil@latest

Usage

go vet -vettool=$(which noioutil) ./...

Example

package main

import (
	"fmt"
	"io/ioutil"
)

func main() {
	bytes, _ := ioutil.ReadFile("foo.go")
	fmt.Println(string(bytes))
}
$ go vet -vettool=$(which noioutil) main.go
# command-line-arguments
./main.go:5:2: "io/ioutil" package is used