Skip to content

gostatement is an analyzer checking for occurrence of `go` statements

License

Notifications You must be signed in to change notification settings

fpuc/gostatement

Repository files navigation

gostatement

test_and_lint

gostatement is an analyzer checking for occurrence of go statements. You may want to use a custom func wrapping the statement utilizing recover, logging, metrics...

Instruction

go install github.com/fpuc/gostatement/cmd/gostatement

Usage

package main

import (
	"fmt"
	"os"
	"testing"
)

func main() {
    go func() {
        // foo
    }()
}
go vet -vettool=$(which gostatement) ./...

./main.go:4:2: go statement found

About

gostatement is an analyzer checking for occurrence of `go` statements

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages