An open API service indexing awesome lists of open source software.

https://github.com/daniilty/go-exported-local-variables


https://github.com/daniilty/go-exported-local-variables

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

## Installation

```bash
$ go get -u github.com/daniilty/go-exported-local-variables/...
```

## Usage

```bash
$ go-exported-local-variables -- path/to/file.go
```

**Or**
```bash
$ go-exported-local-variables ./...
```
If you wish to run it on all your project's files

## Sample of a bad code

```golang
func Incorrect() string {
A := "Oh it seems not so good" \\ sample.go:10:2: local variable A should not be exported

return A
}
```