bobg / bobg/mingo

Fails to detect new http routing patterns introduced in go1.22

Open
#19 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
50
Forks
2
Avg merge
14m
Merged PRs (30d)
1

Description

mingo output:
`go.mod declares version 1.23 but computed minimum is 1.1 `

go1.23 is required for proper functionality .... due to "GET\t/{$}" in http.Handler func

```
package main

import (
"fmt"
"net/http"
)

func main() {
http.HandleFunc("GET\t/{$}", homeHandler)
http.ListenAndServe(":8000", nil)
}

func homeHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "hello world")
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report with the shown main package and the `GET\t/{$}` pattern, then inspect the Go-version detection associated with `go.mod`. Done means mingo recognizes that this routing pattern requires the reported Go version instead of computing a minimum of 1.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.