How to: [⏫](#contents) Detect magic strings with [goconst](https://github.com/jgautheron/goconst)
This tool detects repeated strings. — [@jgautheron](https://github.com/jgautheron)

```
goconst -min-occurrences 5 -output json ./... | jq
```

Example
```
"not reached": [                                                                                                                                          
  {                                                                                                                                                       
    "Filename": "tpl/internal/go_templates/texttemplate/hugo_template.go",                                                                                
    "Offset": 7916,
    "Line": 267,
    "Column": 8
  },
  {
    "Filename": "tpl/internal/go_templates/texttemplate/exec.go",
    "Offset": 15056,
    "Line": 525,
    "Column": 8
  },
  {
    "Filename": "tpl/internal/go_templates/texttemplate/exec.go",
    "Offset": 21354,
    "Line": 699,
    "Column": 8
  },
  {
    "Filename": "tpl/internal/go_templates/texttemplate/exec.go",
    "Offset": 28145,
    "Line": 903,
    "Column": 8
  },
  ...
```

Requirements
```
go install github.com/jgautheron/goconst/cmd/goconst@latest
```