bytheway / VetFailure

Demonstration of a bug in go vet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Vet Failure

This code fails to pass go vet with a loading order issue.

If you run go vet in this directory, it will fail with:

# github.com/bytheway/VetFailure_test
./example_test.go:7: ExampleDemo refers to unknown identifier: Demo

If you run go vet $(ls *.go | sort -r), with the files being processed in reverse order, it passes.

About

Demonstration of a bug in go vet


Languages

Language:Go 100.0%