File tree 9 files changed +15
-13
lines changed
9 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
- latest = 1.19
2
- penultimate = 1.18
1
+ latest = 1.22
2
+ penultimate = 1.21
Original file line number Diff line number Diff line change 5
5
linters :
6
6
enable :
7
7
- bodyclose
8
- - deadcode
9
- - depguard
10
8
- dupl
11
9
- errcheck
12
10
- exportloopref
@@ -36,7 +34,6 @@ linters:
36
34
- unconvert
37
35
- unparam
38
36
- unused
39
- - varcheck
40
37
- whitespace
41
38
fast : false
42
39
@@ -54,4 +51,3 @@ linters-settings:
54
51
issues :
55
52
exclude-use-default : false
56
53
max-same-issues : 1000
57
- max-per-linter : 1000
Original file line number Diff line number Diff line change 1
1
2
- GOLANGCI_LINT_VERSION =v1.48.0
2
+ GOLANGCI_LINT_VERSION =v1.57.1
3
3
4
4
LINTER =./bin/golangci-lint
5
5
LINTER_VERSION_FILE =./bin/.golangci-lint-version-$(GOLANGCI_LINT_VERSION )
Original file line number Diff line number Diff line change 8
8
9
9
## Supported Go versions
10
10
11
- This version of the LaunchDarkly SDK supports Go version 1.18 or higher.
11
+ This version of the LaunchDarkly SDK supports Go version 1.21 or higher.
12
12
13
13
The policy for this SDK follows that of the official Go [ Release Policy] ( https://go.dev/doc/devel/release ) : each major Go release is supported until there
14
14
are two newer major releases.
Original file line number Diff line number Diff line change 1
1
module github.com/launchdarkly/go-server-sdk/v6
2
2
3
- go 1.18
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/fsnotify/fsnotify v1.4.7
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF
12
12
github.com/karlseguin/expect v1.0.2-0.20190806010014-778a5f0c6003 h1:vJ0Snvo+SLMY72r5J4sEfkuE7AFbixEP2qRbEcum/wA =
13
13
github.com/karlseguin/expect v1.0.2-0.20190806010014-778a5f0c6003 /go.mod h1:zNBxMY8P21owkeogJELCLeHIt+voOSduHYTFUbwRAV8 =
14
14
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE =
15
+ github.com/kr/pretty v0.3.1 /go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk =
15
16
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
17
+ github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
16
18
github.com/launchdarkly/ccache v1.1.0 h1:voD1M+ZJXR3MREOKtBwgTF9hYHl1jg+vFKS/+VAkR2k =
17
19
github.com/launchdarkly/ccache v1.1.0 /go.mod h1:TlxzrlnzvYeXiLHmesMuvoZetu4Z97cV1SsdqqBJi1Q =
18
20
github.com/launchdarkly/eventsource v1.6.2 h1:5SbcIqzUomn+/zmJDrkb4LYw7ryoKFzH/0TbR0/3Bdg =
@@ -67,6 +69,7 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
67
69
golang.org/x/text v0.3.0 /go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ =
68
70
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
69
71
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk =
72
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c /go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q =
70
73
gopkg.in/ghodss/yaml.v1 v1.0.0 h1:JlY4R6oVz+ZSvcDhVfNQ/k/8Xo6yb2s1PBhslPZPX4c =
71
74
gopkg.in/ghodss/yaml.v1 v1.0.0 /go.mod h1:HDvRMPQLqycKPs9nWLuzZWxsxRzISLCRORiDpBUOMqg =
72
75
gopkg.in/yaml.v2 v2.2.2 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import (
11
11
type ServiceType int
12
12
13
13
const (
14
- StreamingService ServiceType = iota //nolint:revive // don't really need doc comments here
15
- PollingService ServiceType = iota
16
- EventsService ServiceType = iota
14
+ StreamingService ServiceType = iota //nolint:revive // internal constant
15
+ PollingService ServiceType = iota //nolint:revive // internal constant
16
+ EventsService ServiceType = iota //nolint:revive // internal constant
17
17
)
18
18
19
19
func (s ServiceType ) String () string {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ type SingleComponentConfigurer[T any] struct {
8
8
Instance T
9
9
}
10
10
11
+ // Build builds the component.
11
12
func (c SingleComponentConfigurer [T ]) Build (clientContext subsystems.ClientContext ) (T , error ) {
12
13
return c .Instance , nil
13
14
}
@@ -18,6 +19,7 @@ type ComponentConfigurerThatReturnsError[T any] struct {
18
19
Err error
19
20
}
20
21
22
+ // Build builds the component.
21
23
func (c ComponentConfigurerThatReturnsError [T ]) Build (clientContext subsystems.ClientContext ) (T , error ) {
22
24
var empty T
23
25
return empty , c .Err
@@ -30,6 +32,7 @@ type ComponentConfigurerThatCapturesClientContext[T any] struct {
30
32
ReceivedClientContext subsystems.ClientContext
31
33
}
32
34
35
+ // Build builds the component.
33
36
func (c * ComponentConfigurerThatCapturesClientContext [T ]) Build (clientContext subsystems.ClientContext ) (T , error ) {
34
37
c .ReceivedClientContext = clientContext
35
38
return c .Configurer .Build (clientContext )
Original file line number Diff line number Diff line change 1
1
module github.com/launchdarkly/go-server-sdk/v6/testservice
2
2
3
- go 1.18
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/gorilla/mux v1.8.0
You can’t perform that action at this time.
0 commit comments