update go tools #11
10
go.mod
10
go.mod
@@ -1,5 +1,13 @@
|
||||
module gitoa.ru/go-4devs/console
|
||||
|
||||
go 1.23
|
||||
go 1.24.0
|
||||
|
||||
require gitoa.ru/go-4devs/config v0.0.7
|
||||
|
||||
require (
|
||||
golang.org/x/mod v0.31.0 // indirect
|
||||
golang.org/x/sync v0.19.0 // indirect
|
||||
golang.org/x/tools v0.40.0 // indirect
|
||||
)
|
||||
|
||||
tool golang.org/x/tools/cmd/stringer
|
||||
|
||||
10
go.sum
10
go.sum
@@ -1,2 +1,12 @@
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
gitoa.ru/go-4devs/config v0.0.7 h1:8q6axRNLgXE5dYQd8Jbh9j+STqevbibVyvwrtsuHpZk=
|
||||
gitoa.ru/go-4devs/config v0.0.7/go.mod h1:UINWnObZA0nLiJro+TtavUBBvN0cSt17aRHOk20pP74=
|
||||
golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
|
||||
golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
|
||||
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
|
||||
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
|
||||
golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
|
||||
golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
|
||||
golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package verbosity
|
||||
|
||||
//go:generate stringer -type=Verbosity -linecomment
|
||||
//go:generate go tool stringer -type=Verbosity -linecomment
|
||||
|
||||
type Verbosity int
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ const _Verbosity_name = "quietnorminfodebugtrace"
|
||||
var _Verbosity_index = [...]uint8{0, 5, 9, 13, 18, 23}
|
||||
|
||||
func (i Verbosity) String() string {
|
||||
i -= -1
|
||||
if i < 0 || i >= Verbosity(len(_Verbosity_index)-1) {
|
||||
return "Verbosity(" + strconv.FormatInt(int64(i+-1), 10) + ")"
|
||||
idx := int(i) - -1
|
||||
if i < -1 || idx >= len(_Verbosity_index)-1 {
|
||||
return "Verbosity(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Verbosity_name[_Verbosity_index[i]:_Verbosity_index[i+1]]
|
||||
return _Verbosity_name[_Verbosity_index[idx]:_Verbosity_index[idx+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user