Skip to content

Commit 0d6b42c

Browse files
committed
Update all dependencies and Go 1.25.3
1 parent e4f8848 commit 0d6b42c

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ GOFMT=$(shell which gofmt)
6161
GOTEST=$(GO) test
6262
GODOC=GOPATH=$(GOPATH) $(shell which godoc)
6363
GOLANGCILINT=$(BINUTIL)/golangci-lint
64-
GOLANGCILINTVERSION=v2.5.0
64+
GOLANGCILINTVERSION=v2.6.1
6565

6666
# Directory containing the source code
6767
SRCDIR=./

conn.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func newConn(conf connConfig, muted bool) (*conn, error) {
8282
return c, nil
8383
}
8484

85-
func (c *conn) metric(prefix, bucket string, n interface{}, typ string, rate float32, tags string) {
85+
func (c *conn) metric(prefix, bucket string, n any, typ string, rate float32, tags string) {
8686
c.mu.Lock()
8787

8888
l := len(c.buf)
@@ -96,7 +96,7 @@ func (c *conn) metric(prefix, bucket string, n interface{}, typ string, rate flo
9696
c.mu.Unlock()
9797
}
9898

99-
func (c *conn) gauge(prefix, bucket string, value interface{}, tags string) {
99+
func (c *conn) gauge(prefix, bucket string, value any, tags string) {
100100
c.mu.Lock()
101101

102102
l := len(c.buf)
@@ -114,7 +114,7 @@ func (c *conn) gauge(prefix, bucket string, value interface{}, tags string) {
114114
c.mu.Unlock()
115115
}
116116

117-
func (c *conn) appendGauge(value interface{}, tags string) {
117+
func (c *conn) appendGauge(value any, tags string) {
118118
c.appendNumber(value)
119119
c.appendType("g")
120120
c.closeMetric(tags)
@@ -140,7 +140,7 @@ func (c *conn) appendString(s string) {
140140
}
141141

142142
//nolint:gocyclo,cyclop
143-
func (c *conn) appendNumber(v interface{}) {
143+
func (c *conn) appendNumber(v any) {
144144
switch n := v.(type) {
145145
case int:
146146
c.buf = strconv.AppendInt(c.buf, int64(n), 10)
@@ -170,7 +170,7 @@ func (c *conn) appendNumber(v interface{}) {
170170
}
171171

172172
//nolint:gocyclo,cyclop
173-
func isNegative(v interface{}) bool {
173+
func isNegative(v any) bool {
174174
switch n := v.(type) {
175175
case int:
176176
return n < 0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/tecnickcom/statsd
22

33
go 1.25
44

5-
toolchain go1.25.1
5+
toolchain go1.25.3
66

77
retract v2.0.6+incompatible // Published in error - v1 is the current version
88

statsd.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (c *Client) Clone(opts ...Option) *Client {
8383
}
8484

8585
// Count adds n to bucket.
86-
func (c *Client) Count(bucket string, n interface{}) {
86+
func (c *Client) Count(bucket string, n any) {
8787
if c.skip() {
8888
return
8989
}
@@ -97,7 +97,7 @@ func (c *Client) Increment(bucket string) {
9797
}
9898

9999
// Gauge records an absolute value for the given bucket.
100-
func (c *Client) Gauge(bucket string, value interface{}) {
100+
func (c *Client) Gauge(bucket string, value any) {
101101
if c.skip() {
102102
return
103103
}
@@ -106,7 +106,7 @@ func (c *Client) Gauge(bucket string, value interface{}) {
106106
}
107107

108108
// Timing sends a timing value to a bucket.
109-
func (c *Client) Timing(bucket string, value interface{}) {
109+
func (c *Client) Timing(bucket string, value any) {
110110
if c.skip() {
111111
return
112112
}
@@ -115,7 +115,7 @@ func (c *Client) Timing(bucket string, value interface{}) {
115115
}
116116

117117
// Histogram sends an histogram value to a bucket.
118-
func (c *Client) Histogram(bucket string, value interface{}) {
118+
func (c *Client) Histogram(bucket string, value any) {
119119
if c.skip() {
120120
return
121121
}

0 commit comments

Comments
 (0)