diff --git a/.codeconv.yml b/.codeconv.yml new file mode 100644 index 00000000..e4a61461 --- /dev/null +++ b/.codeconv.yml @@ -0,0 +1,2 @@ +ignore: + - "./rules/.*" \ No newline at end of file diff --git a/.github/workflows/go21.yml b/.github/workflows/go.yml similarity index 58% rename from .github/workflows/go21.yml rename to .github/workflows/go.yml index 54fda7f5..c4541084 100644 --- a/.github/workflows/go21.yml +++ b/.github/workflows/go.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: TestGo21 +name: GoTest on: push: @@ -10,20 +10,29 @@ on: branches: [ "main" ] jobs: - build: runs-on: ubuntu-latest + strategy: + # If you want to matrix build , you can append the following list. + matrix: + go_version: + - 1.21 + - 1.22 + os: + - ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: ${{ matrix.go_version }} - name: Build run: make build - name: InstUt - run: go test -v ./pkg/... + run: go test -v ./pkg/... -coverprofile=coverage.txt -covermode=atomic + - name: Coverage + run: bash <(curl -s https://codecov.io/bash) - name: Test run: go test -short -timeout 50m -v github.com/alibaba/opentelemetry-go-auto-instrumentation/test diff --git a/.github/workflows/go22.yml b/.github/workflows/go22.yml deleted file mode 100644 index b529b88f..00000000 --- a/.github/workflows/go22.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: TestGo22 - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.22' - - - name: Build - run: make build - - name: InstUt - run: go test -v ./pkg/... - - name: Test - run: go test -short -timeout 50m -v github.com/alibaba/opentelemetry-go-auto-instrumentation/test diff --git a/README.md b/README.md index 5847ea75..73748d72 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ You can also explore [these examples](./example/) to get hands-on experience. We are progressively open-sourcing the libraries we have supported, and your contributions are very welcome. -Please refer to [this document](./docs/how-to-add-a-new-rule.md) for guidance on how to write instrumentation +Please refer to [this document](./docs/how-to-add-a-new-rule.md) for guidance on how to write instrumentation code for new frameworks. # Community diff --git a/api/api.go b/api/api.go index 7ea355d9..b04da5bd 100644 --- a/api/api.go +++ b/api/api.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package api // ----------------------------------------------------------------------------- diff --git a/api/exporter.go b/api/exporter.go index 66d862d0..1f42cce8 100644 --- a/api/exporter.go +++ b/api/exporter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package api import ( diff --git a/api/ruledef.go b/api/ruledef.go index b381ae44..12303637 100644 --- a/api/ruledef.go +++ b/api/ruledef.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package api import ( diff --git a/example/benchmark/consumer/consumer.go b/example/benchmark/consumer/consumer.go index 17db142b..c822ea8e 100644 --- a/example/benchmark/consumer/consumer.go +++ b/example/benchmark/consumer/consumer.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/example/benchmark/producer/producer.go b/example/benchmark/producer/producer.go index 0420e2fa..59a6700d 100644 --- a/example/benchmark/producer/producer.go +++ b/example/benchmark/producer/producer.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/example/demo/demo.go b/example/demo/demo.go index 20f8e721..73d7032a 100644 --- a/example/demo/demo.go +++ b/example/demo/demo.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/main.go b/main.go index 5011fac9..e6cea895 100644 --- a/main.go +++ b/main.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/pkg/core/meter/meter.go b/pkg/core/meter/meter.go index 3ed9da3a..87629779 100644 --- a/pkg/core/meter/meter.go +++ b/pkg/core/meter/meter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package meter import "go.opentelemetry.io/otel/metric" diff --git a/pkg/exporter.go b/pkg/exporter.go index 3b264010..7fcb602a 100644 --- a/pkg/exporter.go +++ b/pkg/exporter.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package pkg import ( diff --git a/pkg/inst-api-semconv/instrumenter/db/db_client_extractor.go b/pkg/inst-api-semconv/instrumenter/db/db_client_extractor.go index c60b33dc..a9ac6ed0 100644 --- a/pkg/inst-api-semconv/instrumenter/db/db_client_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/db/db_client_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package db import ( diff --git a/pkg/inst-api-semconv/instrumenter/db/db_client_extractor_test.go b/pkg/inst-api-semconv/instrumenter/db/db_client_extractor_test.go index e1a01850..95a9e8b2 100644 --- a/pkg/inst-api-semconv/instrumenter/db/db_client_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/db/db_client_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package db import ( diff --git a/pkg/inst-api-semconv/instrumenter/db/db_client_getter.go b/pkg/inst-api-semconv/instrumenter/db/db_client_getter.go index 681f10bd..2ba9a054 100644 --- a/pkg/inst-api-semconv/instrumenter/db/db_client_getter.go +++ b/pkg/inst-api-semconv/instrumenter/db/db_client_getter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package db type DbClientCommonAttrsGetter[REQUEST any] interface { diff --git a/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor.go b/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor.go index d796ba7f..fa6a6a21 100644 --- a/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package db type DBSpanNameExtractor[REQUEST any] struct { diff --git a/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor_test.go b/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor_test.go index 3d1ba310..334b0716 100644 --- a/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/db/db_span_name_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package db import "testing" diff --git a/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor.go b/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor.go index c4b1bbb3..75ef70cf 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import ( diff --git a/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor_test.go b/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor_test.go index 5c0fa3a8..8d240843 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_attrs_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import ( diff --git a/pkg/inst-api-semconv/instrumenter/http/http_attrs_getter.go b/pkg/inst-api-semconv/instrumenter/http/http_attrs_getter.go index 7b70e081..5aec2504 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_attrs_getter.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_attrs_getter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import "github.com/alibaba/opentelemetry-go-auto-instrumentation/pkg/inst-api-semconv/instrumenter/net" diff --git a/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor.go b/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor.go index d7f7aee5..dea4f3ad 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http type HttpClientSpanNameExtractor[REQUEST any, RESPONSE any] struct { diff --git a/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor_test.go b/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor_test.go index ce48b321..b4a87d05 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_span_name_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import "testing" diff --git a/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter.go b/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter.go index 3367cb21..8ffdef9e 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http type HttpStatusCodeConverter interface { diff --git a/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter_test.go b/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter_test.go index da420c1f..f7578dc7 100644 --- a/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter_test.go +++ b/pkg/inst-api-semconv/instrumenter/http/http_status_code_converter_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import "testing" diff --git a/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor.go b/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor.go index 16410a09..10afca3a 100644 --- a/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package message import ( diff --git a/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor_test.go b/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor_test.go index be1c4f3e..acf8d7b1 100644 --- a/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/message/message_attrs_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package message import ( diff --git a/pkg/inst-api-semconv/instrumenter/message/message_attrs_getter.go b/pkg/inst-api-semconv/instrumenter/message/message_attrs_getter.go index 0cb6c328..90f60948 100644 --- a/pkg/inst-api-semconv/instrumenter/message/message_attrs_getter.go +++ b/pkg/inst-api-semconv/instrumenter/message/message_attrs_getter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package message type MessageAttrsGetter[REQUEST any, RESPONSE any] interface { diff --git a/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor.go b/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor.go index 523760ee..c2aebbab 100644 --- a/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package message const temp_destination_name = "(temporary)" diff --git a/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor_test.go b/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor_test.go index 52d70209..ed35f624 100644 --- a/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/message/message_span_name_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package message import ( diff --git a/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor.go b/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor.go index 1b09622e..1de7ab26 100644 --- a/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package net import ( diff --git a/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor_test.go b/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor_test.go index 33fc73ab..31ebb1e8 100644 --- a/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/net/network_attrs_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package net import ( diff --git a/pkg/inst-api-semconv/instrumenter/net/network_attrs_getter.go b/pkg/inst-api-semconv/instrumenter/net/network_attrs_getter.go index 621ff9d2..a2f65ae1 100644 --- a/pkg/inst-api-semconv/instrumenter/net/network_attrs_getter.go +++ b/pkg/inst-api-semconv/instrumenter/net/network_attrs_getter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package net type NetworkAttrsGetter[REQUEST any, RESPONSE any] interface { diff --git a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor.go b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor.go index b8cf03ed..edc01a13 100644 --- a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rpc import ( diff --git a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor_test.go b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor_test.go index 15674931..cdbcaa14 100644 --- a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rpc import ( diff --git a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_getter.go b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_getter.go index a149938d..432885de 100644 --- a/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_getter.go +++ b/pkg/inst-api-semconv/instrumenter/rpc/rpc_attrs_getter.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rpc type RpcAttrsGetter[REQUEST any] interface { diff --git a/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor.go b/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor.go index 7e1e4326..562b169c 100644 --- a/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor.go +++ b/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rpc type RpcSpanNameExtractor[REQUEST any] struct { diff --git a/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor_test.go b/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor_test.go index 2367aeb6..0aea943c 100644 --- a/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor_test.go +++ b/pkg/inst-api-semconv/instrumenter/rpc/rpc_span_name_extractor_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rpc import "testing" diff --git a/pkg/inst-api/instrumenter/extractor.go b/pkg/inst-api/instrumenter/extractor.go index ab36b43a..2c25fa4a 100644 --- a/pkg/inst-api/instrumenter/extractor.go +++ b/pkg/inst-api/instrumenter/extractor.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/extractor_test.go b/pkg/inst-api/instrumenter/extractor_test.go index 4597fe10..ef41f773 100644 --- a/pkg/inst-api/instrumenter/extractor_test.go +++ b/pkg/inst-api/instrumenter/extractor_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/hook.go b/pkg/inst-api/instrumenter/hook.go index 94c54ac4..4399352c 100644 --- a/pkg/inst-api/instrumenter/hook.go +++ b/pkg/inst-api/instrumenter/hook.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/hook_test.go b/pkg/inst-api/instrumenter/hook_test.go index 3504a9a1..1ca2f38c 100644 --- a/pkg/inst-api/instrumenter/hook_test.go +++ b/pkg/inst-api/instrumenter/hook_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/instrumenter.go b/pkg/inst-api/instrumenter/instrumenter.go index 1129f9be..d014492c 100644 --- a/pkg/inst-api/instrumenter/instrumenter.go +++ b/pkg/inst-api/instrumenter/instrumenter.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/instrumenter_builder.go b/pkg/inst-api/instrumenter/instrumenter_builder.go index f9ce4701..598a9931 100644 --- a/pkg/inst-api/instrumenter/instrumenter_builder.go +++ b/pkg/inst-api/instrumenter/instrumenter_builder.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/instrumenter_test.go b/pkg/inst-api/instrumenter/instrumenter_test.go index 9d9b4873..7268534e 100644 --- a/pkg/inst-api/instrumenter/instrumenter_test.go +++ b/pkg/inst-api/instrumenter/instrumenter_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/span_supressor.go b/pkg/inst-api/instrumenter/span_supressor.go index 0dc3cca2..dc092b19 100644 --- a/pkg/inst-api/instrumenter/span_supressor.go +++ b/pkg/inst-api/instrumenter/span_supressor.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/instrumenter/span_supressor_test.go b/pkg/inst-api/instrumenter/span_supressor_test.go index 6dbba038..f79ee8b1 100644 --- a/pkg/inst-api/instrumenter/span_supressor_test.go +++ b/pkg/inst-api/instrumenter/span_supressor_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrumenter import ( diff --git a/pkg/inst-api/utils/span_key.go b/pkg/inst-api/utils/span_key.go index 43340e9a..214a4603 100644 --- a/pkg/inst-api/utils/span_key.go +++ b/pkg/inst-api/utils/span_key.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package utils import "go.opentelemetry.io/otel/attribute" diff --git a/pkg/otel_setup.go b/pkg/otel_setup.go index ec19b8a2..45d05773 100644 --- a/pkg/otel_setup.go +++ b/pkg/otel_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/databasesql/databasesql_data_type.go b/pkg/rules/databasesql/databasesql_data_type.go index d62f2ffa..cc36807f 100644 --- a/pkg/rules/databasesql/databasesql_data_type.go +++ b/pkg/rules/databasesql/databasesql_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/databasesql/databasesql_otel_instrumenter.go b/pkg/rules/databasesql/databasesql_otel_instrumenter.go index bdc26921..cd46e14a 100644 --- a/pkg/rules/databasesql/databasesql_otel_instrumenter.go +++ b/pkg/rules/databasesql/databasesql_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/databasesql/databasesql_parser.go b/pkg/rules/databasesql/databasesql_parser.go index 366f5731..ab127b70 100644 --- a/pkg/rules/databasesql/databasesql_parser.go +++ b/pkg/rules/databasesql/databasesql_parser.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/databasesql/rule.go b/pkg/rules/databasesql/rule.go index 8c4bc871..d28d026b 100644 --- a/pkg/rules/databasesql/rule.go +++ b/pkg/rules/databasesql/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package databasesql import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/databasesql/setup.go b/pkg/rules/databasesql/setup.go index 795ade3d..9472e44f 100644 --- a/pkg/rules/databasesql/setup.go +++ b/pkg/rules/databasesql/setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/echo/echo_data_type.go b/pkg/rules/echo/echo_data_type.go index 33c25b3e..1bf2a95d 100644 --- a/pkg/rules/echo/echo_data_type.go +++ b/pkg/rules/echo/echo_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/echo/echo_otel_instrumenter.go b/pkg/rules/echo/echo_otel_instrumenter.go index 3ffe7969..fb1755df 100644 --- a/pkg/rules/echo/echo_otel_instrumenter.go +++ b/pkg/rules/echo/echo_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/echo/echo_server_setup.go b/pkg/rules/echo/echo_server_setup.go index 2178ceda..9bef655b 100644 --- a/pkg/rules/echo/echo_server_setup.go +++ b/pkg/rules/echo/echo_server_setup.go @@ -1,3 +1,16 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. //go:build ignore package rule diff --git a/pkg/rules/echo/rule.go b/pkg/rules/echo/rule.go index 2039f86d..3ea663d8 100644 --- a/pkg/rules/echo/rule.go +++ b/pkg/rules/echo/rule.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package rule import ( diff --git a/pkg/rules/gin/gin_data_type.go b/pkg/rules/gin/gin_data_type.go index 80867f36..2da692c2 100644 --- a/pkg/rules/gin/gin_data_type.go +++ b/pkg/rules/gin/gin_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gin/gin_html_setup.go b/pkg/rules/gin/gin_html_setup.go index 55a77d17..a86f369c 100644 --- a/pkg/rules/gin/gin_html_setup.go +++ b/pkg/rules/gin/gin_html_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gin/gin_otel_instrumenter.go b/pkg/rules/gin/gin_otel_instrumenter.go index 4335f569..418815b6 100644 --- a/pkg/rules/gin/gin_otel_instrumenter.go +++ b/pkg/rules/gin/gin_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gin/gin_server_setup.go b/pkg/rules/gin/gin_server_setup.go index db30d3b6..7bdaa4da 100644 --- a/pkg/rules/gin/gin_server_setup.go +++ b/pkg/rules/gin/gin_server_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gin/rule.go b/pkg/rules/gin/rule.go index 1aebef50..8413ea82 100644 --- a/pkg/rules/gin/rule.go +++ b/pkg/rules/gin/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rule import ( diff --git a/pkg/rules/goredis/goredis_data_type.go b/pkg/rules/goredis/goredis_data_type.go index 261cb7a0..594d87cf 100644 --- a/pkg/rules/goredis/goredis_data_type.go +++ b/pkg/rules/goredis/goredis_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/goredis/goredis_otel_instrumenter.go b/pkg/rules/goredis/goredis_otel_instrumenter.go index 24e0e428..f55cda0a 100644 --- a/pkg/rules/goredis/goredis_otel_instrumenter.go +++ b/pkg/rules/goredis/goredis_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/goredis/rule.go b/pkg/rules/goredis/rule.go index 5f2781fa..127f13bf 100644 --- a/pkg/rules/goredis/rule.go +++ b/pkg/rules/goredis/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package goredis import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/goredis/setup.go b/pkg/rules/goredis/setup.go index 5e6f13fb..8240f038 100644 --- a/pkg/rules/goredis/setup.go +++ b/pkg/rules/goredis/setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gorm/gorm_data_type.go b/pkg/rules/gorm/gorm_data_type.go index 3b6d13fa..4f9e24f9 100644 --- a/pkg/rules/gorm/gorm_data_type.go +++ b/pkg/rules/gorm/gorm_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gorm/gorm_otel_instrumenter.go b/pkg/rules/gorm/gorm_otel_instrumenter.go index db96db74..4aa0309b 100644 --- a/pkg/rules/gorm/gorm_otel_instrumenter.go +++ b/pkg/rules/gorm/gorm_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gorm/rule.go b/pkg/rules/gorm/rule.go index 7755c74c..81ac3e95 100644 --- a/pkg/rules/gorm/rule.go +++ b/pkg/rules/gorm/rule.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/gorm/setup.go b/pkg/rules/gorm/setup.go index 280ffff4..78a82244 100644 --- a/pkg/rules/gorm/setup.go +++ b/pkg/rules/gorm/setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/http/client_setup.go b/pkg/rules/http/client_setup.go index 6ae3bfc1..b9e4979d 100644 --- a/pkg/rules/http/client_setup.go +++ b/pkg/rules/http/client_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/http/net_http_data_type.go b/pkg/rules/http/net_http_data_type.go index f3d098cd..b0901fca 100644 --- a/pkg/rules/http/net_http_data_type.go +++ b/pkg/rules/http/net_http_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/http/net_http_otel_instrumenter.go b/pkg/rules/http/net_http_otel_instrumenter.go index 63c3e074..58ea68dd 100644 --- a/pkg/rules/http/net_http_otel_instrumenter.go +++ b/pkg/rules/http/net_http_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/http/rule.go b/pkg/rules/http/rule.go index c37dabcc..8b94fd11 100644 --- a/pkg/rules/http/rule.go +++ b/pkg/rules/http/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package rule import ( diff --git a/pkg/rules/http/server_setup.go b/pkg/rules/http/server_setup.go index e36c1dc4..84cc7ef9 100644 --- a/pkg/rules/http/server_setup.go +++ b/pkg/rules/http/server_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/logrus/rule.go b/pkg/rules/logrus/rule.go index 4659de6d..9d5e5a23 100644 --- a/pkg/rules/logrus/rule.go +++ b/pkg/rules/logrus/rule.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package rule import ( diff --git a/pkg/rules/logrus/setup.go b/pkg/rules/logrus/setup.go index 91b3833a..031cf4b0 100644 --- a/pkg/rules/logrus/setup.go +++ b/pkg/rules/logrus/setup.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //go:build ignore package rule diff --git a/pkg/rules/mongo/client_setup.go b/pkg/rules/mongo/client_setup.go index 53f59e80..1839ea48 100644 --- a/pkg/rules/mongo/client_setup.go +++ b/pkg/rules/mongo/client_setup.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/mongo/mongo_data_type.go b/pkg/rules/mongo/mongo_data_type.go index b0970e6a..94982dd1 100644 --- a/pkg/rules/mongo/mongo_data_type.go +++ b/pkg/rules/mongo/mongo_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/mongo/mongo_otel_instrumenter.go b/pkg/rules/mongo/mongo_otel_instrumenter.go index 57c0a292..fb4e86f2 100644 --- a/pkg/rules/mongo/mongo_otel_instrumenter.go +++ b/pkg/rules/mongo/mongo_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/mongo/rule.go b/pkg/rules/mongo/rule.go index 337c32a6..2cd67bbe 100644 --- a/pkg/rules/mongo/rule.go +++ b/pkg/rules/mongo/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package mongo import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/mux/mux_data_type.go b/pkg/rules/mux/mux_data_type.go index 1d81ee4d..dac6b735 100644 --- a/pkg/rules/mux/mux_data_type.go +++ b/pkg/rules/mux/mux_data_type.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/mux/mux_otel_instrumenter.go b/pkg/rules/mux/mux_otel_instrumenter.go index fb01c983..3b72ed4f 100644 --- a/pkg/rules/mux/mux_otel_instrumenter.go +++ b/pkg/rules/mux/mux_otel_instrumenter.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/mux/mux_server_setup.go b/pkg/rules/mux/mux_server_setup.go index af7f42f1..494e24c8 100644 --- a/pkg/rules/mux/mux_server_setup.go +++ b/pkg/rules/mux/mux_server_setup.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //go:build ignore package rule diff --git a/pkg/rules/mux/rule.go b/pkg/rules/mux/rule.go index 3c19a176..851d1c42 100644 --- a/pkg/rules/mux/rule.go +++ b/pkg/rules/mux/rule.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package rule import ( diff --git a/pkg/rules/otsdk/baggage/context.go b/pkg/rules/otsdk/baggage/context.go index c33f52b5..e9718ad9 100644 --- a/pkg/rules/otsdk/baggage/context.go +++ b/pkg/rules/otsdk/baggage/context.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/ot_baggage_linker.go b/pkg/rules/otsdk/ot_baggage_linker.go index 5886c24f..6f0e6ac7 100644 --- a/pkg/rules/otsdk/ot_baggage_linker.go +++ b/pkg/rules/otsdk/ot_baggage_linker.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/ot_baggage_util.go b/pkg/rules/otsdk/ot_baggage_util.go index 85ebe426..dbbfb9c1 100644 --- a/pkg/rules/otsdk/ot_baggage_util.go +++ b/pkg/rules/otsdk/ot_baggage_util.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/ot_trace_context_linker.go b/pkg/rules/otsdk/ot_trace_context_linker.go index 2cad1ba0..01a9a490 100644 --- a/pkg/rules/otsdk/ot_trace_context_linker.go +++ b/pkg/rules/otsdk/ot_trace_context_linker.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/rule.go b/pkg/rules/otsdk/rule.go index af68bcaf..12618cf2 100644 --- a/pkg/rules/otsdk/rule.go +++ b/pkg/rules/otsdk/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package otsdk import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/otsdk/trace-context/ot_trace_context.go b/pkg/rules/otsdk/trace-context/ot_trace_context.go index f1a47627..04b11fae 100644 --- a/pkg/rules/otsdk/trace-context/ot_trace_context.go +++ b/pkg/rules/otsdk/trace-context/ot_trace_context.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/trace-context/span.go b/pkg/rules/otsdk/trace-context/span.go index c70b0b78..8ac44cfd 100644 --- a/pkg/rules/otsdk/trace-context/span.go +++ b/pkg/rules/otsdk/trace-context/span.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/trace-context/trace.go b/pkg/rules/otsdk/trace-context/trace.go index d19db58e..399e7415 100644 --- a/pkg/rules/otsdk/trace-context/trace.go +++ b/pkg/rules/otsdk/trace-context/trace.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/otsdk/trace-context/tracer.go b/pkg/rules/otsdk/trace-context/tracer.go index da7c1c99..503a14dc 100644 --- a/pkg/rules/otsdk/trace-context/tracer.go +++ b/pkg/rules/otsdk/trace-context/tracer.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/runtime/rule.go b/pkg/rules/runtime/rule.go index db9744e4..0a38eafb 100644 --- a/pkg/rules/runtime/rule.go +++ b/pkg/rules/runtime/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package runtime import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/runtime/runtime_linker.go b/pkg/rules/runtime/runtime_linker.go index 8ed35a14..4785c1ae 100644 --- a/pkg/rules/runtime/runtime_linker.go +++ b/pkg/rules/runtime/runtime_linker.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/test/errors_hook.go b/pkg/rules/test/errors_hook.go index 669d3286..3353c486 100644 --- a/pkg/rules/test/errors_hook.go +++ b/pkg/rules/test/errors_hook.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/test/fmt_hook.go b/pkg/rules/test/fmt_hook.go index d562c79f..b71dc286 100644 --- a/pkg/rules/test/fmt_hook.go +++ b/pkg/rules/test/fmt_hook.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/test/http/rule.go b/pkg/rules/test/http/rule.go index ca4daff1..a024969b 100644 --- a/pkg/rules/test/http/rule.go +++ b/pkg/rules/test/http/rule.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package http import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/test/net_http_hook.go b/pkg/rules/test/net_http_hook.go index 7de5770d..7b0f613b 100644 --- a/pkg/rules/test/net_http_hook.go +++ b/pkg/rules/test/net_http_hook.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/rules/test/rule.go b/pkg/rules/test/rule.go index c4f4de56..e9f056cc 100644 --- a/pkg/rules/test/rule.go +++ b/pkg/rules/test/rule.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package test import "github.com/alibaba/opentelemetry-go-auto-instrumentation/api" diff --git a/pkg/rules/zap/rule.go b/pkg/rules/zap/rule.go index a84912f2..d8a0113e 100644 --- a/pkg/rules/zap/rule.go +++ b/pkg/rules/zap/rule.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package rule import ( diff --git a/pkg/rules/zap/setup.go b/pkg/rules/zap/setup.go index eaccfdf8..74d0dd0d 100644 --- a/pkg/rules/zap/setup.go +++ b/pkg/rules/zap/setup.go @@ -1,3 +1,16 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. //go:build ignore package rule diff --git a/pkg/verifier/access.go b/pkg/verifier/access.go index b48b5a43..d95d4823 100644 --- a/pkg/verifier/access.go +++ b/pkg/verifier/access.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/access_test.go b/pkg/verifier/access_test.go index 3664904d..c80a0702 100644 --- a/pkg/verifier/access_test.go +++ b/pkg/verifier/access_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/runner.go b/pkg/verifier/runner.go index d023fda4..714dbf17 100644 --- a/pkg/verifier/runner.go +++ b/pkg/verifier/runner.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/runner_test.go b/pkg/verifier/runner_test.go index 80eb8089..efd04342 100644 --- a/pkg/verifier/runner_test.go +++ b/pkg/verifier/runner_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/util.go b/pkg/verifier/util.go index cf545442..eff705ec 100644 --- a/pkg/verifier/util.go +++ b/pkg/verifier/util.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/util_test.go b/pkg/verifier/util_test.go index 63ace0a5..5bd761c5 100644 --- a/pkg/verifier/util_test.go +++ b/pkg/verifier/util_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/verifier.go b/pkg/verifier/verifier.go index 8a4b8f26..2b0ab7cf 100644 --- a/pkg/verifier/verifier.go +++ b/pkg/verifier/verifier.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/pkg/verifier/verifier_test.go b/pkg/verifier/verifier_test.go index 6b7309cc..617906d2 100644 --- a/pkg/verifier/verifier_test.go +++ b/pkg/verifier/verifier_test.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package verifier import ( diff --git a/rule_enabler.go b/rule_enabler.go index f4dd43e6..e21f1367 100644 --- a/rule_enabler.go +++ b/rule_enabler.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/build/cmd/bar.go b/test/build/cmd/bar.go index 473da78b..7e5580c6 100644 --- a/test/build/cmd/bar.go +++ b/test/build/cmd/bar.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main func bar() {} diff --git a/test/build/cmd/foo.go b/test/build/cmd/foo.go index 78a573b4..aa7ba994 100644 --- a/test/build/cmd/foo.go +++ b/test/build/cmd/foo.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main func main() {} diff --git a/test/build/m.go b/test/build/m.go index 78a573b4..aa7ba994 100644 --- a/test/build/m.go +++ b/test/build/m.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main func main() {} diff --git a/test/build/mod1/main.go b/test/build/mod1/main.go index 78a573b4..aa7ba994 100644 --- a/test/build/mod1/main.go +++ b/test/build/mod1/main.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main func main() {} diff --git a/test/build/mod2/main.go b/test/build/mod2/main.go index 78a573b4..aa7ba994 100644 --- a/test/build/mod2/main.go +++ b/test/build/mod2/main.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main func main() {} diff --git a/test/databasesql/mysql/test_access_database.go b/test/databasesql/mysql/test_access_database.go index bc0d68a8..6386e538 100644 --- a/test/databasesql/mysql/test_access_database.go +++ b/test/databasesql/mysql/test_access_database.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/databasesql/mysql/test_fetching_database.go b/test/databasesql/mysql/test_fetching_database.go index e69e9238..16f86975 100644 --- a/test/databasesql/mysql/test_fetching_database.go +++ b/test/databasesql/mysql/test_fetching_database.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/databasesql/mysql/test_modify_data.go b/test/databasesql/mysql/test_modify_data.go index 065a18c3..bb373161 100644 --- a/test/databasesql/mysql/test_modify_data.go +++ b/test/databasesql/mysql/test_modify_data.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/databasesql/mysql/test_prepared_statement.go b/test/databasesql/mysql/test_prepared_statement.go index 96524a4a..c6bcb335 100644 --- a/test/databasesql/mysql/test_prepared_statement.go +++ b/test/databasesql/mysql/test_prepared_statement.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/databasesql/mysql/test_single_row_query.go b/test/databasesql/mysql/test_single_row_query.go index b36d6b7e..c2e3d365 100644 --- a/test/databasesql/mysql/test_single_row_query.go +++ b/test/databasesql/mysql/test_single_row_query.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/databasesql/mysql/test_transaction.go b/test/databasesql/mysql/test_transaction.go index 3000f3ab..cda887b7 100644 --- a/test/databasesql/mysql/test_transaction.go +++ b/test/databasesql/mysql/test_transaction.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/echo/v4.0.0/test_echo_basic.go b/test/echo/v4.0.0/test_echo_basic.go index ac90c620..7723a549 100644 --- a/test/echo/v4.0.0/test_echo_basic.go +++ b/test/echo/v4.0.0/test_echo_basic.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/echo/v4.0.0/test_echo_pattern.go b/test/echo/v4.0.0/test_echo_pattern.go index b344ad6b..13417c78 100644 --- a/test/echo/v4.0.0/test_echo_pattern.go +++ b/test/echo/v4.0.0/test_echo_pattern.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/echo/v4.10.0/test_echo_middleware.go b/test/echo/v4.10.0/test_echo_middleware.go index d44078ed..d07e0771 100644 --- a/test/echo/v4.10.0/test_echo_middleware.go +++ b/test/echo/v4.10.0/test_echo_middleware.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/errors-test/main.go b/test/errors-test/main.go index 64d40e41..2fc0cf11 100644 --- a/test/errors-test/main.go +++ b/test/errors-test/main.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/flags/main.go b/test/flags/main.go index 85a94110..cfa22b65 100644 --- a/test/flags/main.go +++ b/test/flags/main.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/gin/gin.go b/test/gin/gin.go index a73be346..a0cafbab 100644 --- a/test/gin/gin.go +++ b/test/gin/gin.go @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Alibaba Group Holding Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/test/gorm/v1.22.0/test_gorm_crud.go b/test/gorm/v1.22.0/test_gorm_crud.go index 54e8488c..90419830 100644 --- a/test/gorm/v1.22.0/test_gorm_crud.go +++ b/test/gorm/v1.22.0/test_gorm_crud.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/gorm/v1.23.1/test_gorm_crud.go b/test/gorm/v1.23.1/test_gorm_crud.go index 54e8488c..90419830 100644 --- a/test/gorm/v1.23.1/test_gorm_crud.go +++ b/test/gorm/v1.23.1/test_gorm_crud.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/helloworld/app2.go b/test/helloworld/app2.go index 3d5b1a40..07c698b4 100644 --- a/test/helloworld/app2.go +++ b/test/helloworld/app2.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/httpclient/app4.go b/test/httpclient/app4.go index abf6b1a4..fd060636 100644 --- a/test/httpclient/app4.go +++ b/test/httpclient/app4.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/integration_test.go b/test/integration_test.go index 8fbc1fb4..f32af2b8 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/logrus/http_server.go b/test/logrus/http_server.go index bcd9c2e1..01d6b044 100644 --- a/test/logrus/http_server.go +++ b/test/logrus/http_server.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/logrus/test_logrus.go b/test/logrus/test_logrus.go index a9656649..09dbb326 100644 --- a/test/logrus/test_logrus.go +++ b/test/logrus/test_logrus.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/logrus_tests.go b/test/logrus_tests.go index f4c46990..8f5eb8ec 100644 --- a/test/logrus_tests.go +++ b/test/logrus_tests.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/mongo/v1.11.1/dsn.go b/test/mongo/v1.11.1/dsn.go index 2b11d2cb..79b695c7 100644 --- a/test/mongo/v1.11.1/dsn.go +++ b/test/mongo/v1.11.1/dsn.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import "os" diff --git a/test/mongo/v1.11.1/test_batch.go b/test/mongo/v1.11.1/test_batch.go index 9f2d3a34..16735fb5 100644 --- a/test/mongo/v1.11.1/test_batch.go +++ b/test/mongo/v1.11.1/test_batch.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/mongo/v1.11.1/test_crud_mongo.go b/test/mongo/v1.11.1/test_crud_mongo.go index 95145920..67c137a6 100644 --- a/test/mongo/v1.11.1/test_crud_mongo.go +++ b/test/mongo/v1.11.1/test_crud_mongo.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/mongo/v1.11.1/test_cursor.go b/test/mongo/v1.11.1/test_cursor.go index d84ddf79..719229a0 100644 --- a/test/mongo/v1.11.1/test_cursor.go +++ b/test/mongo/v1.11.1/test_cursor.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/mux/v1.3.0/test_mux_basic.go b/test/mux/v1.3.0/test_mux_basic.go index 4d39fa6b..05e5a298 100644 --- a/test/mux/v1.3.0/test_mux_basic.go +++ b/test/mux/v1.3.0/test_mux_basic.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/mux/v1.3.0/test_mux_pattern.go b/test/mux/v1.3.0/test_mux_pattern.go index f29d1dfb..9d97c164 100644 --- a/test/mux/v1.3.0/test_mux_pattern.go +++ b/test/mux/v1.3.0/test_mux_pattern.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/mux/v1.7.0/test_mux_middleware.go b/test/mux/v1.7.0/test_mux_middleware.go index bc396015..f059ee93 100644 --- a/test/mux/v1.7.0/test_mux_middleware.go +++ b/test/mux/v1.7.0/test_mux_middleware.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/nethttp/http_server.go b/test/nethttp/http_server.go index 79a1e3ac..dfbc465d 100644 --- a/test/nethttp/http_server.go +++ b/test/nethttp/http_server.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/nethttp/test_http.go b/test/nethttp/test_http.go index df472aef..56cd407f 100644 --- a/test/nethttp/test_http.go +++ b/test/nethttp/test_http.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/nethttp/test_http_2.go b/test/nethttp/test_http_2.go index 2995270c..26171d5d 100644 --- a/test/nethttp/test_http_2.go +++ b/test/nethttp/test_http_2.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/nethttp/test_https.go b/test/nethttp/test_https.go index 63884776..133e19f0 100644 --- a/test/nethttp/test_https.go +++ b/test/nethttp/test_https.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_executing_commands.go b/test/redis/v9.0.5/test_executing_commands.go index e533ce7a..69bbd618 100644 --- a/test/redis/v9.0.5/test_executing_commands.go +++ b/test/redis/v9.0.5/test_executing_commands.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_executing_unsupported_commands.go b/test/redis/v9.0.5/test_executing_unsupported_commands.go index 17ab854a..e8b7cf09 100644 --- a/test/redis/v9.0.5/test_executing_unsupported_commands.go +++ b/test/redis/v9.0.5/test_executing_unsupported_commands.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_redis_conn.go b/test/redis/v9.0.5/test_redis_conn.go index 192179ca..7b155acc 100644 --- a/test/redis/v9.0.5/test_redis_conn.go +++ b/test/redis/v9.0.5/test_redis_conn.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_redis_ring.go b/test/redis/v9.0.5/test_redis_ring.go index cb453159..dece8118 100644 --- a/test/redis/v9.0.5/test_redis_ring.go +++ b/test/redis/v9.0.5/test_redis_ring.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_redis_transactions.go b/test/redis/v9.0.5/test_redis_transactions.go index 917de597..92fba71f 100644 --- a/test/redis/v9.0.5/test_redis_transactions.go +++ b/test/redis/v9.0.5/test_redis_transactions.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/redis/v9.0.5/test_universal_client.go b/test/redis/v9.0.5/test_universal_client.go index 06b48ab7..ca21eb48 100644 --- a/test/redis/v9.0.5/test_universal_client.go +++ b/test/redis/v9.0.5/test_universal_client.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/version/version.go b/test/version/version.go index a3b55bea..18311ff0 100644 --- a/test/version/version.go +++ b/test/version/version.go @@ -11,8 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 // inspired by https://github.com/hashicorp/go-version diff --git a/test/version/version_test.go b/test/version/version_test.go index ca658650..6b1a6a23 100644 --- a/test/version/version_test.go +++ b/test/version/version_test.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package version import ( diff --git a/test/zao_tests.go b/test/zao_tests.go index 8a9d9253..b96f48e9 100644 --- a/test/zao_tests.go +++ b/test/zao_tests.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/test/zap/http_server.go b/test/zap/http_server.go index d1e37b01..1594690e 100644 --- a/test/zap/http_server.go +++ b/test/zap/http_server.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/test/zap/test_zap.go b/test/zap/test_zap.go index 54ad458b..9aa5d0c6 100644 --- a/test/zap/test_zap.go +++ b/test/zap/test_zap.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package main import ( diff --git a/tool/driver.go b/tool/driver.go index c57b265e..4085e7d3 100644 --- a/tool/driver.go +++ b/tool/driver.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package tool import ( diff --git a/tool/instrument/inst_file.go b/tool/instrument/inst_file.go index 2ac262c8..adb44487 100644 --- a/tool/instrument/inst_file.go +++ b/tool/instrument/inst_file.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/instrument/inst_func.go b/tool/instrument/inst_func.go index 0c62f77a..a93c24f1 100644 --- a/tool/instrument/inst_func.go +++ b/tool/instrument/inst_func.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/instrument/inst_struct.go b/tool/instrument/inst_struct.go index 5671e7f7..c826a191 100644 --- a/tool/instrument/inst_struct.go +++ b/tool/instrument/inst_struct.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/instrument/instrument.go b/tool/instrument/instrument.go index c92ed3c6..78ce44d2 100644 --- a/tool/instrument/instrument.go +++ b/tool/instrument/instrument.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/instrument/optimize.go b/tool/instrument/optimize.go index 9312c0f4..46d6e30b 100644 --- a/tool/instrument/optimize.go +++ b/tool/instrument/optimize.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/instrument/template.go b/tool/instrument/template.go index b3c6440d..005f81cb 100644 --- a/tool/instrument/template.go +++ b/tool/instrument/template.go @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/tool/instrument/trampoline.go b/tool/instrument/trampoline.go index 90b17161..09b84e05 100644 --- a/tool/instrument/trampoline.go +++ b/tool/instrument/trampoline.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package instrument import ( diff --git a/tool/preprocess/dependency.go b/tool/preprocess/dependency.go index d94ebb38..101e469d 100644 --- a/tool/preprocess/dependency.go +++ b/tool/preprocess/dependency.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package preprocess import ( diff --git a/tool/preprocess/match.go b/tool/preprocess/match.go index 909a51b2..9f771dbc 100644 --- a/tool/preprocess/match.go +++ b/tool/preprocess/match.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package preprocess import ( diff --git a/tool/preprocess/preprocess.go b/tool/preprocess/preprocess.go index 37f401d8..93bada01 100644 --- a/tool/preprocess/preprocess.go +++ b/tool/preprocess/preprocess.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package preprocess import ( diff --git a/tool/resource/bundle.go b/tool/resource/bundle.go index fa7a724f..b3a706eb 100644 --- a/tool/resource/bundle.go +++ b/tool/resource/bundle.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package resource import ( diff --git a/tool/resource/resource.go b/tool/resource/resource.go index fb6e3f29..c79fbda3 100644 --- a/tool/resource/resource.go +++ b/tool/resource/resource.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package resource import ( diff --git a/tool/shared/ast.go b/tool/shared/ast.go index 3fedb130..caf25e50 100644 --- a/tool/shared/ast.go +++ b/tool/shared/ast.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package shared import ( diff --git a/tool/shared/flags.go b/tool/shared/flags.go index c367ae8a..f6da10cf 100644 --- a/tool/shared/flags.go +++ b/tool/shared/flags.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package shared import ( diff --git a/tool/shared/shared.go b/tool/shared/shared.go index b7260da3..17850407 100644 --- a/tool/shared/shared.go +++ b/tool/shared/shared.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package shared import ( diff --git a/tool/util/util.go b/tool/util/util.go index fa0f1074..9c46e072 100644 --- a/tool/util/util.go +++ b/tool/util/util.go @@ -4,13 +4,14 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package util import (