mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-10-26 21:39:56 -04:00
Bump Go + deps; run go fix
This commit is contained in:
1 parent
f70ff83e1e
commit
ff7e156e91
3 files changed
+11
-9
No files matched your search
+4
-2
@@ -1,9 +1,11 @@
|
|||||||
package back
|
package back
|
||||||
|
|
||||||
|
import "slices"
|
||||||
|
|
||||||
// RemoveTrailingEmptyStrings removes empty strings from the end of a slice.
|
// RemoveTrailingEmptyStrings removes empty strings from the end of a slice.
|
||||||
func RemoveTrailingEmptyStrings(slice []string) []string {
|
func RemoveTrailingEmptyStrings(slice []string) []string {
|
||||||
for i := len(slice) - 1; i >= 0; i-- {
|
for i, s := range slices.Backward(slice) {
|
||||||
if slice[i] != "" {
|
if s != "" {
|
||||||
return slice[:i+1]
|
return slice[:i+1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module github.com/rwinkhart/go-boilerplate
|
module github.com/rwinkhart/go-boilerplate
|
||||||
|
|
||||||
go 1.26.3
|
go 1.27.3
|
||||||
|
|
||||||
require golang.org/x/term v0.43.0
|
require golang.org/x/term v0.47.0
|
||||||
|
|
||||||
require golang.org/x/sys v0.45.0 // indirect
|
require golang.org/x/sys v0.49.0 // indirect
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
|
golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA=
|
||||||
golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
||||||
golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4=
|
golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM=
|
||||||
golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk=
|
golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY=
|
||||||
Reference in new issue
Block a user