mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: update golang to 1.24.1 (#17035)
- Update go.mod to use Go 1.24.1 - Update GitHub Actions setup-go action to use Go 1.24.1 - Fix linting issues with golangci-lint by: - Updating to golangci-lint v1.57.1 (more compatible with Go 1.24.1) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <claude@anthropic.com>
This commit is contained in:
@ -20,19 +20,19 @@ func main() {
|
||||
defer l.Close()
|
||||
tcpAddr, valid := l.Addr().(*net.TCPAddr)
|
||||
if !valid {
|
||||
log.Fatal("address is not valid")
|
||||
log.Panic("address is not valid")
|
||||
}
|
||||
|
||||
remotePort := tcpAddr.Port
|
||||
_, err = fmt.Println(remotePort)
|
||||
if err != nil {
|
||||
log.Fatalf("print error: err=%s", err)
|
||||
log.Panicf("print error: err=%s", err)
|
||||
}
|
||||
|
||||
for {
|
||||
conn, err := l.Accept()
|
||||
if err != nil {
|
||||
log.Fatalf("accept error, err=%s", err)
|
||||
log.Panicf("accept error, err=%s", err)
|
||||
return
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ func main() {
|
||||
if errors.Is(err, io.EOF) {
|
||||
return
|
||||
} else if err != nil {
|
||||
log.Fatalf("copy error, err=%s", err)
|
||||
log.Panicf("copy error, err=%s", err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Reference in New Issue
Block a user