Skip to content

takaokanbe/noioutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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