https://github.com/daniilty/go-exported-local-variables
https://github.com/daniilty/go-exported-local-variables
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daniilty/go-exported-local-variables
- Owner: daniilty
- Created: 2021-02-16T14:11:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-24T09:11:58.000Z (over 5 years ago)
- Last Synced: 2025-01-26T01:20:30.195Z (over 1 year ago)
- Language: Go
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
```