Skip to content

Commit 3802129

Browse files
committed
chore: updated license marks in source files
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 06d6e56 commit 3802129

File tree

116 files changed

+538
-1118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+538
-1118
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ linters:
1818
- gomoddirectives # moved to mono-repo, multi-modules, so replace directives are needed
1919
- gosmopolitan
2020
- inamedparam
21-
#- intrange # disabled while < go1.22
2221
- ireturn
2322
- lll
2423
- musttag

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ Moving forward, we want to :
3737
independently from the main package (to avoid breaking changes, the existing API
3838
will remain maintained, but evolve at a slower pace than opentelemetry).
3939
* [ ] fix a few known issues with some file upload requests (e.g. #286)
40+
41+
## Licensing
42+
43+
This library ships under the [SPDX-License-Identifier: Apache-2.0](./LICENSE).

authinfo_test.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2015 go-swagger maintainers
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package runtime
165

bytestream.go

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2015 go-swagger maintainers
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package runtime
165

@@ -54,7 +43,7 @@ func ByteStreamConsumer(opts ...byteStreamOpt) Consumer {
5443
opt(&vals)
5544
}
5645

57-
return ConsumerFunc(func(reader io.Reader, data interface{}) error {
46+
return ConsumerFunc(func(reader io.Reader, data any) error {
5847
if reader == nil {
5948
return errors.New("ByteStreamConsumer requires a reader") // early exit
6049
}
@@ -148,7 +137,7 @@ func ByteStreamProducer(opts ...byteStreamOpt) Producer {
148137
opt(&vals)
149138
}
150139

151-
return ProducerFunc(func(writer io.Writer, data interface{}) error {
140+
return ProducerFunc(func(writer io.Writer, data any) error {
152141
if writer == nil {
153142
return errors.New("ByteStreamProducer requires a writer") // early exit
154143
}

bytestream_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package runtime
25

36
import (
@@ -62,15 +65,15 @@ func TestByteStreamConsumer(t *testing.T) {
6265
})
6366

6467
t.Run("can consume as an interface with underlying type []byte", func(t *testing.T) {
65-
var dest interface{} = []byte{}
68+
var dest any = []byte{}
6669
require.NoError(t, consumer.Consume(bytes.NewBufferString(expected), &dest))
6770
asBytes, ok := dest.([]byte)
6871
require.True(t, ok)
6972
assert.Equal(t, expected, string(asBytes))
7073
})
7174

7275
t.Run("can consume as an interface with underlying type string", func(t *testing.T) {
73-
var dest interface{} = "x"
76+
var dest any = "x"
7477
require.NoError(t, consumer.Consume(bytes.NewBufferString(expected), &dest))
7578
asString, ok := dest.(string)
7679
require.True(t, ok)
@@ -274,7 +277,7 @@ func TestByteStreamProducer(t *testing.T) {
274277

275278
t.Run("can produce from an interface with underlying type string", func(t *testing.T) {
276279
var w bytes.Buffer
277-
var data interface{} = expected
280+
var data any = expected
278281
require.NoError(t, producer.Produce(&w, data))
279282
assert.Equal(t, expected, w.String())
280283
})
@@ -289,7 +292,7 @@ func TestByteStreamProducer(t *testing.T) {
289292

290293
t.Run("can produce from an interface with underling type []byte", func(t *testing.T) {
291294
var w bytes.Buffer
292-
var data interface{} = []byte(expected)
295+
var data any = []byte(expected)
293296
require.NoError(t, producer.Produce(&w, data))
294297
assert.Equal(t, expected, w.String())
295298
})

client-middleware/opentracing/opentracing.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package opentracing
25

36
import (

client-middleware/opentracing/opentracing_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package opentracing
25

36
import (

client-middleware/opentracing/runtime.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
package opentracing
25

36
import (

client/auth_info.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2015 go-swagger maintainers
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package client
165

client/auth_info_test.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2015 go-swagger maintainers
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package client
165

0 commit comments

Comments
 (0)