mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +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:
@@ -226,11 +226,9 @@ func (p *QueryParamParser) Time(vals url.Values, def time.Time, queryParam, layo
|
||||
// Time uses the default time format of RFC3339Nano and always returns a UTC time.
|
||||
func (p *QueryParamParser) Time3339Nano(vals url.Values, def time.Time, queryParam string) time.Time {
|
||||
layout := time.RFC3339Nano
|
||||
return p.timeWithMutate(vals, def, queryParam, layout, func(term string) string {
|
||||
// All search queries are forced to lowercase. But the RFC format requires
|
||||
// upper case letters. So just uppercase the term.
|
||||
return strings.ToUpper(term)
|
||||
})
|
||||
// All search queries are forced to lowercase. But the RFC format requires
|
||||
// upper case letters. So just uppercase the term.
|
||||
return p.timeWithMutate(vals, def, queryParam, layout, strings.ToUpper)
|
||||
}
|
||||
|
||||
func (p *QueryParamParser) timeWithMutate(vals url.Values, def time.Time, queryParam, layout string, mutate func(term string) string) time.Time {
|
||||
|
||||
Reference in New Issue
Block a user