From d26bf18e7d0e681a494b1a76e4677d1ea64dff80 Mon Sep 17 00:00:00 2001 From: goodliu Date: Mon, 16 Oct 2023 18:41:21 +0800 Subject: [PATCH] all: update copyright headers (#4) * update readme * remove personal copyright * all: update copyright headers to keep consistent with the description in the CONTRIBUTING.md file of the trpc repository https://github.com/trpc-group/trpc/blob/main/CONTRIBUTING.md#copyright-headers --- CONTRIBUTING.md | 15 +++++++++---- CONTRIBUTING.zh_CN.md | 15 +++++++++---- bindata/bindata.go | 9 ++++++++ bindata/bindata_test.go | 9 ++++++++ bindata/compress/tar.go | 9 ++++++++ bindata/compress/tar_test.go | 9 ++++++++ cmd/apidocs/apidocs.go | 9 ++++++++ cmd/apidocs/apidocs_test.go | 9 ++++++++ cmd/completion/completion.go | 9 ++++++++ cmd/completion/completion_test.go | 17 ++++++++++---- cmd/create/cmdflags.go | 9 ++++++++ cmd/create/create.go | 9 ++++++++ cmd/create/create_idl_fbs_test.go | 9 ++++++++ cmd/create/create_idl_non_test.go | 9 ++++++++ cmd/create/create_test.go | 9 ++++++++ cmd/create/generate.go | 9 ++++++++ cmd/create/options.go | 9 ++++++++ cmd/create/post.go | 9 ++++++++ cmd/create/rpcstub.go | 9 ++++++++ cmd/internal/test_helper.go | 9 ++++++++ cmd/root.go | 9 ++++++++ cmd/setup/setup.go | 9 ++++++++ cmd/version/version.go | 9 ++++++++ cmd/version/version_test.go | 9 ++++++++ config/config.go | 9 ++++++++ config/config_test.go | 9 ++++++++ config/def.go | 9 ++++++++ config/def_test.go | 9 ++++++++ config/dependencies.go | 9 ++++++++ config/dependencies_test.go | 9 ++++++++ config/validate.go | 9 ++++++++ config/version.go | 9 ++++++++ descriptor/desc.go | 9 ++++++++ descriptor/desc_test.go | 9 ++++++++ descriptor/fbsdesc.go | 9 ++++++++ descriptor/protodesc.go | 9 ++++++++ descriptor/testcase/hello.proto | 9 ++++++++ descriptor/testcase/message.proto | 9 ++++++++ docs/examples/example-1/demo/greeter.proto | 9 ++++++++ .../demo/helloworld/helloworld.pb.go | 9 ++++++++ .../demo/helloworld/helloworld.proto | 9 ++++++++ .../example-2/demo-alias1/helloworld.proto | 9 ++++++++ .../example-2/demo-alias2/greeter.proto | 9 ++++++++ .../demo-gotag/helloworld.go_tag.proto | 9 ++++++++ .../example-2/pboptions/options.proto | 9 ++++++++ .../demo-swagger/helloworld.swagger.proto | 9 ++++++++ docs/helloworld/helloworld.proto | 9 ++++++++ gobin/assets.go | 9 ++++++++ params/option.go | 9 ++++++++ parser/fill.go | 9 ++++++++ parser/fill_test.go | 9 ++++++++ parser/option.go | 9 ++++++++ parser/parser.go | 9 ++++++++ parser/parser_imports_test.go | 9 ++++++++ parser/parser_test.go | 9 ++++++++ parser/path_expr.go | 9 ++++++++ parser/path_expr_test.go | 9 ++++++++ parser/restful.go | 9 ++++++++ parser/swagger.go | 9 ++++++++ parser/testcase/hello2.proto | 9 ++++++++ parser/testcase/importpath/case1/dep1.proto | 9 ++++++++ parser/testcase/importpath/case1/dep2.proto | 9 ++++++++ parser/testcase/importpath/case1/hello.proto | 9 ++++++++ parser/testcase/importpath/case2/dep1.proto | 9 ++++++++ parser/testcase/importpath/case2/dep2.proto | 9 ++++++++ parser/testcase/importpath/case2/hello.proto | 9 ++++++++ parser/testcase/java/hello.proto | 9 ++++++++ parser/testcase/java/test_hello.proto | 9 ++++++++ parser/testcase/java/test_hello_err.proto | 9 ++++++++ .../java/test_hello_package_empty.proto | 9 ++++++++ parser/testcase/java/test_hello_suc.proto | 9 ++++++++ plugin/cpp_move.go | 9 ++++++++ plugin/format.go | 9 ++++++++ plugin/format_test.go | 9 ++++++++ plugin/goimports.go | 9 ++++++++ plugin/goimports_test.go | 9 ++++++++ plugin/gomock.go | 9 ++++++++ plugin/gomock_test.go | 9 ++++++++ plugin/gotag.go | 9 ++++++++ plugin/gotag_test.go | 9 ++++++++ plugin/openapi.go | 9 ++++++++ plugin/openapi_test.go | 9 ++++++++ plugin/plugin.go | 9 ++++++++ plugin/plugin_test.go | 9 ++++++++ plugin/plugins.go | 9 ++++++++ plugin/plugins_all.go | 9 ++++++++ plugin/swagger.go | 9 ++++++++ plugin/swagger_test.go | 9 ++++++++ plugin/sync/file.go | 9 ++++++++ plugin/sync/file_mock.go | 9 ++++++++ plugin/sync/git.go | 9 ++++++++ plugin/sync/git_mock.go | 9 ++++++++ plugin/sync/sync_git.go | 9 ++++++++ plugin/sync/sync_git_test.go | 9 ++++++++ plugin/validate.go | 9 ++++++++ plugin/validate_test.go | 9 ++++++++ testcase/apidocs/helloworld.proto | 9 ++++++++ testcase/apidocs/helloworld_comment.proto | 9 ++++++++ testcase/apidocs/helloworld_restful.proto | 9 ++++++++ .../create/1-without-import/helloworld.proto | 9 ++++++++ testcase/create/10-validate/abc/abc.proto | 9 ++++++++ testcase/create/10-validate/helloworld.proto | 9 ++++++++ .../common/common.proto | 9 ++++++++ .../service1/service1.proto | 9 ++++++++ .../service2/service2.proto | 9 ++++++++ .../2-multi-pb-same-package/hello.proto | 9 ++++++++ .../2-multi-pb-same-package/message.proto | 9 ++++++++ .../hello.proto | 9 ++++++++ .../message.proto | 9 ++++++++ .../3-multi-pb-diff-package/helloworld.proto | 9 ++++++++ .../3-multi-pb-diff-package/request.proto | 9 ++++++++ .../3-multi-pb-diff-package/response.proto | 9 ++++++++ .../helloworld.proto | 9 ++++++++ .../request/request.proto | 9 ++++++++ .../response/response.proto | 9 ++++++++ .../helloworld.proto | 9 ++++++++ .../request/request.proto | 9 ++++++++ .../response/response.proto | 9 ++++++++ .../common/a.proto | 9 ++++++++ .../common/b.proto | 9 ++++++++ .../helloworld.proto | 9 ++++++++ .../cos/comm.proto | 9 ++++++++ .../pattern.proto | 9 ++++++++ .../create/6-other-scene/google/google.proto | 9 ++++++++ .../6-other-scene/hello_service/hello.proto | 9 ++++++++ testcase/create/7-plugins/gotag/gotag.proto | 9 ++++++++ .../8-service-not-existed/helloworld.proto | 9 ++++++++ testcase/create/9-restful/helloworld.proto | 9 ++++++++ testcase/plugins/format/helloworld.proto | 9 ++++++++ testcase/plugins/gotag/gotag.proto | 9 ++++++++ testcase/plugins/validate/helloworld.proto | 9 ++++++++ tpl/funcmap.go | 9 ++++++++ tpl/tpl.go | 9 ++++++++ trpc/trpc.go | 22 +++++++------------ util/apidocs/apidocs.go | 9 ++++++++ util/apidocs/definitions.go | 9 ++++++++ util/apidocs/info.go | 9 ++++++++ util/apidocs/info_test.go | 9 ++++++++ util/apidocs/method.go | 9 ++++++++ util/apidocs/openapi/gen.go | 9 ++++++++ util/apidocs/openapi/gen_test.go | 9 ++++++++ util/apidocs/openapi_v3.go | 9 ++++++++ util/apidocs/openapi_v3_test.go | 9 ++++++++ util/apidocs/ordered_map.go | 9 ++++++++ util/apidocs/ordered_map_test.go | 9 ++++++++ util/apidocs/parameter.go | 9 ++++++++ util/apidocs/path.go | 9 ++++++++ util/apidocs/pathx.go | 9 ++++++++ util/apidocs/property.go | 9 ++++++++ util/apidocs/swagger.go | 9 ++++++++ util/apidocs/swagger/gen.go | 9 ++++++++ util/apidocs/swagger/gen_test.go | 9 ++++++++ util/apidocs/swagger_test.go | 9 ++++++++ util/apidocs/testcase/hello.proto | 9 ++++++++ util/apidocs/x/types.go | 9 ++++++++ util/apidocs/x/types_test.go | 9 ++++++++ util/browser/browser.go | 9 ++++++++ util/fb/fb_test.go | 9 ++++++++ util/fb/fbs.go | 9 ++++++++ util/fb/option.go | 9 ++++++++ util/fs/copy.go | 9 ++++++++ util/fs/copy_test.go | 9 ++++++++ util/fs/file.go | 9 ++++++++ util/fs/file_test.go | 9 ++++++++ util/fs/move.go | 9 ++++++++ util/fs/move_test.go | 9 ++++++++ util/lang/lang.go | 9 ++++++++ util/lang/lang_test.go | 9 ++++++++ util/log/color.go | 9 ++++++++ util/log/color_windows.go | 9 ++++++++ util/log/log.go | 9 ++++++++ util/log/log_test.go | 9 ++++++++ util/paths/trpc.go | 9 ++++++++ util/paths/trpc_test.go | 9 ++++++++ util/pb/option.go | 9 ++++++++ util/pb/protoc.go | 9 ++++++++ util/pb/protoc_test.go | 9 ++++++++ util/pb/protoc_version.go | 9 ++++++++ util/pb/protoc_version_test.go | 9 ++++++++ util/pb/testcase/helloworld-import-trpc.proto | 9 ++++++++ util/pb/testcase/helloworld.proto | 9 ++++++++ util/promptui/promptui.go | 9 ++++++++ util/semver/semver.go | 9 ++++++++ util/semver/semver_test.go | 9 ++++++++ util/style/gofmt.go | 9 ++++++++ util/style/gofmt_test.go | 9 ++++++++ 186 files changed, 1681 insertions(+), 26 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a5984d5..66bcc64 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -110,11 +110,18 @@ Instead, your name will appear in the change log. New files that you contribute should use the standard copyright header: ```go -// Tencent is pleased to support the open source community by making trpc-cmdline available. -// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved. +// +// +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// // If you have downloaded a copy of the tRPC source code from Tencent, -// please note that trpc-cmdline source code is licensed under the Apache 2.0 License, -// A copy of the Apache 2.0 License can be found in the LICENSE file. +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. +// +// ``` Files in the repository are copyrighted the year they are added. diff --git a/CONTRIBUTING.zh_CN.md b/CONTRIBUTING.zh_CN.md index a50e5c9..c103c78 100644 --- a/CONTRIBUTING.zh_CN.md +++ b/CONTRIBUTING.zh_CN.md @@ -100,11 +100,18 @@ trpc-cmdline 代码仓库中的文件不列出作者姓名,以避免混乱并 您贡献的新文件应使用标准版权声明: ```go -// Tencent is pleased to support the open source community by making trpc-cmdline available. -// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved. +// +// +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// // If you have downloaded a copy of the tRPC source code from Tencent, -// please note that trpc-cmdline source code is licensed under the Apache 2.0 License, -// A copy of the Apache 2.0 License can be found in the LICENSE file. +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. +// +// ``` 代码仓库中的文件在添加时受版权保护。 diff --git a/bindata/bindata.go b/bindata/bindata.go index 4de03ab..d95621d 100644 --- a/bindata/bindata.go +++ b/bindata/bindata.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package main import ( diff --git a/bindata/bindata_test.go b/bindata/bindata_test.go index 0656954..560dbdd 100644 --- a/bindata/bindata_test.go +++ b/bindata/bindata_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package main import ( diff --git a/bindata/compress/tar.go b/bindata/compress/tar.go index 15bee7a..ddfb43b 100644 --- a/bindata/compress/tar.go +++ b/bindata/compress/tar.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package compress import ( diff --git a/bindata/compress/tar_test.go b/bindata/compress/tar_test.go index 5a3ad4b..4d9ef9c 100644 --- a/bindata/compress/tar_test.go +++ b/bindata/compress/tar_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package compress import ( diff --git a/cmd/apidocs/apidocs.go b/cmd/apidocs/apidocs.go index af4555a..58d2c8e 100644 --- a/cmd/apidocs/apidocs.go +++ b/cmd/apidocs/apidocs.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package apidocs provides apidocs command. package apidocs diff --git a/cmd/apidocs/apidocs_test.go b/cmd/apidocs/apidocs_test.go index a790f2e..a00e9b6 100644 --- a/cmd/apidocs/apidocs_test.go +++ b/cmd/apidocs/apidocs_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/cmd/completion/completion.go b/cmd/completion/completion.go index 660c1d5..4e7abd9 100644 --- a/cmd/completion/completion.go +++ b/cmd/completion/completion.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package completion provides completion command. package completion diff --git a/cmd/completion/completion_test.go b/cmd/completion/completion_test.go index 9cd147b..cf71c1e 100644 --- a/cmd/completion/completion_test.go +++ b/cmd/completion/completion_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package completion import ( @@ -14,23 +23,23 @@ func TestCmd_Completion(t *testing.T) { output, err := internal.RunAndWatch(completionCmd, nil, []string{"bash"}) require.Nil(t, err) require.NotEmpty(t, output) - //t.Logf("generated bash completion script: \n%s", output) + // t.Logf("generated bash completion script: \n%s", output) // zsh output, err = internal.RunAndWatch(completionCmd, nil, []string{"zsh"}) require.Nil(t, err) require.NotEmpty(t, output) - //t.Logf("generated zsh completion script: \n%s", output) + // t.Logf("generated zsh completion script: \n%s", output) // fish output, err = internal.RunAndWatch(completionCmd, nil, []string{"fish"}) require.Nil(t, err) require.NotEmpty(t, output) - //t.Logf("generated fish completion script: \n%s", output) + // t.Logf("generated fish completion script: \n%s", output) // powershell output, err = internal.RunAndWatch(completionCmd, nil, []string{"powershell"}) require.Nil(t, err) require.NotEmpty(t, output) - //t.Logf("generated powershell completion script: \n%s", output) + // t.Logf("generated powershell completion script: \n%s", output) } diff --git a/cmd/create/cmdflags.go b/cmd/create/cmdflags.go index 84ccff2..248b093 100644 --- a/cmd/create/cmdflags.go +++ b/cmd/create/cmdflags.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import "github.com/spf13/cobra" diff --git a/cmd/create/create.go b/cmd/create/create.go index 0451fe2..40cf17c 100644 --- a/cmd/create/create.go +++ b/cmd/create/create.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package create provides create command. package create diff --git a/cmd/create/create_idl_fbs_test.go b/cmd/create/create_idl_fbs_test.go index 5149a47..13c2355 100644 --- a/cmd/create/create_idl_fbs_test.go +++ b/cmd/create/create_idl_fbs_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/create_idl_non_test.go b/cmd/create/create_idl_non_test.go index 8fc3f5c..60d5897 100644 --- a/cmd/create/create_idl_non_test.go +++ b/cmd/create/create_idl_non_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/create_test.go b/cmd/create/create_test.go index 2a59bfe..52d3ac0 100755 --- a/cmd/create/create_test.go +++ b/cmd/create/create_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/generate.go b/cmd/create/generate.go index 9afc5b3..a8ccabb 100644 --- a/cmd/create/generate.go +++ b/cmd/create/generate.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/options.go b/cmd/create/options.go index d62acf5..2440799 100644 --- a/cmd/create/options.go +++ b/cmd/create/options.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/post.go b/cmd/create/post.go index 26416ed..d5d112e 100644 --- a/cmd/create/post.go +++ b/cmd/create/post.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/create/rpcstub.go b/cmd/create/rpcstub.go index 73eadab..8d594af 100644 --- a/cmd/create/rpcstub.go +++ b/cmd/create/rpcstub.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package create import ( diff --git a/cmd/internal/test_helper.go b/cmd/internal/test_helper.go index cc0a495..0cadb29 100644 --- a/cmd/internal/test_helper.go +++ b/cmd/internal/test_helper.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package internal provides internal utilities for command to use. package internal diff --git a/cmd/root.go b/cmd/root.go index 351e988..76e3f45 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package cmd provides commands to help developer generating project, testing, etc. package cmd diff --git a/cmd/setup/setup.go b/cmd/setup/setup.go index fc03e04..05b14b2 100644 --- a/cmd/setup/setup.go +++ b/cmd/setup/setup.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package setup provides setup command. package setup diff --git a/cmd/version/version.go b/cmd/version/version.go index 41865b8..86e479e 100644 --- a/cmd/version/version.go +++ b/cmd/version/version.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package version provides version command. package version diff --git a/cmd/version/version_test.go b/cmd/version/version_test.go index d788b3e..a50cd4a 100644 --- a/cmd/version/version_test.go +++ b/cmd/version/version_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package version import ( diff --git a/config/config.go b/config/config.go index 41199c0..9ce6280 100755 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package config provides configuration-related capabilities for this project. package config diff --git a/config/config_test.go b/config/config_test.go index fcd6c02..35e2c8f 100755 --- a/config/config_test.go +++ b/config/config_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config import ( diff --git a/config/def.go b/config/def.go index 064f049..1b0f65b 100644 --- a/config/def.go +++ b/config/def.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config import ( diff --git a/config/def_test.go b/config/def_test.go index 43e7ec2..a856089 100644 --- a/config/def_test.go +++ b/config/def_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config import ( diff --git a/config/dependencies.go b/config/dependencies.go index e2584c3..6fcbc5c 100644 --- a/config/dependencies.go +++ b/config/dependencies.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config import ( diff --git a/config/dependencies_test.go b/config/dependencies_test.go index 516a924..c995b2b 100644 --- a/config/dependencies_test.go +++ b/config/dependencies_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config import ( diff --git a/config/validate.go b/config/validate.go index d6ec3b4..e2a4a26 100644 --- a/config/validate.go +++ b/config/validate.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config // SupportValidate defines whether a certain language supports validation. diff --git a/config/version.go b/config/version.go index f602323..0548583 100644 --- a/config/version.go +++ b/config/version.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package config // TRPCCliVersion is the version of trpc-cmdline tool. diff --git a/descriptor/desc.go b/descriptor/desc.go index 7568a41..4bd4169 100755 --- a/descriptor/desc.go +++ b/descriptor/desc.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package descriptor provides the corresponding capabilities for parsing IDL. package descriptor diff --git a/descriptor/desc_test.go b/descriptor/desc_test.go index 64fa5f9..83f9b49 100644 --- a/descriptor/desc_test.go +++ b/descriptor/desc_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package descriptor import ( diff --git a/descriptor/fbsdesc.go b/descriptor/fbsdesc.go index 1d1369f..2c1fad6 100755 --- a/descriptor/fbsdesc.go +++ b/descriptor/fbsdesc.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package descriptor import ( diff --git a/descriptor/protodesc.go b/descriptor/protodesc.go index 6fd13d9..4a5d59d 100644 --- a/descriptor/protodesc.go +++ b/descriptor/protodesc.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package descriptor import "github.com/jhump/protoreflect/desc" diff --git a/descriptor/testcase/hello.proto b/descriptor/testcase/hello.proto index d069e70..c2117ee 100644 --- a/descriptor/testcase/hello.proto +++ b/descriptor/testcase/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/descriptor/testcase/message.proto b/descriptor/testcase/message.proto index fbf5f65..abd5a1f 100644 --- a/descriptor/testcase/message.proto +++ b/descriptor/testcase/message.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/docs/examples/example-1/demo/greeter.proto b/docs/examples/example-1/demo/greeter.proto index 32683a2..ed2711d 100644 --- a/docs/examples/example-1/demo/greeter.proto +++ b/docs/examples/example-1/demo/greeter.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.greeter; diff --git a/docs/examples/example-1/demo/helloworld/helloworld.pb.go b/docs/examples/example-1/demo/helloworld/helloworld.pb.go index fe04e02..20f0f19 100644 --- a/docs/examples/example-1/demo/helloworld/helloworld.pb.go +++ b/docs/examples/example-1/demo/helloworld/helloworld.pb.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 diff --git a/docs/examples/example-1/demo/helloworld/helloworld.proto b/docs/examples/example-1/demo/helloworld/helloworld.proto index d802c5c..712d405 100644 --- a/docs/examples/example-1/demo/helloworld/helloworld.proto +++ b/docs/examples/example-1/demo/helloworld/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/docs/examples/example-2/demo-alias1/helloworld.proto b/docs/examples/example-2/demo-alias1/helloworld.proto index 8113d73..c9b91b5 100644 --- a/docs/examples/example-2/demo-alias1/helloworld.proto +++ b/docs/examples/example-2/demo-alias1/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; import "trpc/proto/trpc_options.proto"; package app.helloworld; diff --git a/docs/examples/example-2/demo-alias2/greeter.proto b/docs/examples/example-2/demo-alias2/greeter.proto index 96c84d2..d477f80 100644 --- a/docs/examples/example-2/demo-alias2/greeter.proto +++ b/docs/examples/example-2/demo-alias2/greeter.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package greeter; diff --git a/docs/examples/example-2/demo-gotag/helloworld.go_tag.proto b/docs/examples/example-2/demo-gotag/helloworld.go_tag.proto index 05e3802..6cba01e 100644 --- a/docs/examples/example-2/demo-gotag/helloworld.go_tag.proto +++ b/docs/examples/example-2/demo-gotag/helloworld.go_tag.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/docs/examples/example-2/pboptions/options.proto b/docs/examples/example-2/pboptions/options.proto index fd39e57..25cfb3c 100644 --- a/docs/examples/example-2/pboptions/options.proto +++ b/docs/examples/example-2/pboptions/options.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + import "google/protobuf/descriptor.proto"; extend google.protobuf.FileOptions { diff --git a/docs/examples/example-3/demo-swagger/helloworld.swagger.proto b/docs/examples/example-3/demo-swagger/helloworld.swagger.proto index c44a011..c0dbf78 100644 --- a/docs/examples/example-3/demo-swagger/helloworld.swagger.proto +++ b/docs/examples/example-3/demo-swagger/helloworld.swagger.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/docs/helloworld/helloworld.proto b/docs/helloworld/helloworld.proto index 80f8855..2fd00f6 100644 --- a/docs/helloworld/helloworld.proto +++ b/docs/helloworld/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/gobin/assets.go b/gobin/assets.go index 6750a71..d5ec60f 100644 --- a/gobin/assets.go +++ b/gobin/assets.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package gobin var AssetsGo = []uint8{ diff --git a/params/option.go b/params/option.go index 453601a..861d287 100755 --- a/params/option.go +++ b/params/option.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package params stores the parsed parameter data of the tool. package params diff --git a/parser/fill.go b/parser/fill.go index 2522d4f..cbde0da 100755 --- a/parser/fill.go +++ b/parser/fill.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/fill_test.go b/parser/fill_test.go index 415015f..7d85171 100644 --- a/parser/fill_test.go +++ b/parser/fill_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/option.go b/parser/option.go index c086327..13a9449 100644 --- a/parser/option.go +++ b/parser/option.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser type options struct { diff --git a/parser/parser.go b/parser/parser.go index 81b7b8c..43d458b 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package parser provides the ability of the parser to generate IDC descriptions from specified files. package parser diff --git a/parser/parser_imports_test.go b/parser/parser_imports_test.go index 44890a7..7224cd5 100644 --- a/parser/parser_imports_test.go +++ b/parser/parser_imports_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/parser_test.go b/parser/parser_test.go index fd1c9f5..8dd7e88 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/path_expr.go b/parser/path_expr.go index fa4563a..73a1689 100644 --- a/parser/path_expr.go +++ b/parser/path_expr.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/path_expr_test.go b/parser/path_expr_test.go index 36add99..1a77460 100644 --- a/parser/path_expr_test.go +++ b/parser/path_expr_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/restful.go b/parser/restful.go index b72b552..b5e0aec 100644 --- a/parser/restful.go +++ b/parser/restful.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/swagger.go b/parser/swagger.go index adba8b5..c546813 100644 --- a/parser/swagger.go +++ b/parser/swagger.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package parser import ( diff --git a/parser/testcase/hello2.proto b/parser/testcase/hello2.proto index f48d46a..7f49fa2 100644 --- a/parser/testcase/hello2.proto +++ b/parser/testcase/hello2.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/parser/testcase/importpath/case1/dep1.proto b/parser/testcase/importpath/case1/dep1.proto index 4a42c49..635e057 100644 --- a/parser/testcase/importpath/case1/dep1.proto +++ b/parser/testcase/importpath/case1/dep1.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package dep; diff --git a/parser/testcase/importpath/case1/dep2.proto b/parser/testcase/importpath/case1/dep2.proto index 34ada76..8c6cec7 100644 --- a/parser/testcase/importpath/case1/dep2.proto +++ b/parser/testcase/importpath/case1/dep2.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package dep; diff --git a/parser/testcase/importpath/case1/hello.proto b/parser/testcase/importpath/case1/hello.proto index d6ecc09..a1e27c5 100644 --- a/parser/testcase/importpath/case1/hello.proto +++ b/parser/testcase/importpath/case1/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/parser/testcase/importpath/case2/dep1.proto b/parser/testcase/importpath/case2/dep1.proto index b7ba703..ac75617 100644 --- a/parser/testcase/importpath/case2/dep1.proto +++ b/parser/testcase/importpath/case2/dep1.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package dep1; diff --git a/parser/testcase/importpath/case2/dep2.proto b/parser/testcase/importpath/case2/dep2.proto index a6d3b93..5b0013d 100644 --- a/parser/testcase/importpath/case2/dep2.proto +++ b/parser/testcase/importpath/case2/dep2.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package dep2; diff --git a/parser/testcase/importpath/case2/hello.proto b/parser/testcase/importpath/case2/hello.proto index c92b755..42b7f1d 100644 --- a/parser/testcase/importpath/case2/hello.proto +++ b/parser/testcase/importpath/case2/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/parser/testcase/java/hello.proto b/parser/testcase/java/hello.proto index e08b691..ff0dae6 100644 --- a/parser/testcase/java/hello.proto +++ b/parser/testcase/java/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.test.helloworld; option java_package = "test.helloworld"; diff --git a/parser/testcase/java/test_hello.proto b/parser/testcase/java/test_hello.proto index 7124b78..ff39fa3 100644 --- a/parser/testcase/java/test_hello.proto +++ b/parser/testcase/java/test_hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.ilive.ilive_feeds_like_svr; diff --git a/parser/testcase/java/test_hello_err.proto b/parser/testcase/java/test_hello_err.proto index 7124b78..ff39fa3 100644 --- a/parser/testcase/java/test_hello_err.proto +++ b/parser/testcase/java/test_hello_err.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.ilive.ilive_feeds_like_svr; diff --git a/parser/testcase/java/test_hello_package_empty.proto b/parser/testcase/java/test_hello_package_empty.proto index 267b211..0a0dce6 100644 --- a/parser/testcase/java/test_hello_package_empty.proto +++ b/parser/testcase/java/test_hello_package_empty.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.ilive.ilive_feeds_like_svr; option java_multiple_files = true; diff --git a/parser/testcase/java/test_hello_suc.proto b/parser/testcase/java/test_hello_suc.proto index 246ad60..df9cd09 100644 --- a/parser/testcase/java/test_hello_suc.proto +++ b/parser/testcase/java/test_hello_suc.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.ilive.ilive_feeds_like_svr; diff --git a/plugin/cpp_move.go b/plugin/cpp_move.go index 8f490f1..687a155 100644 --- a/plugin/cpp_move.go +++ b/plugin/cpp_move.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/format.go b/plugin/format.go index 7cf2985..f4e6011 100644 --- a/plugin/format.go +++ b/plugin/format.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/format_test.go b/plugin/format_test.go index 941c372..227f5c5 100644 --- a/plugin/format_test.go +++ b/plugin/format_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/goimports.go b/plugin/goimports.go index e30740f..51f633c 100644 --- a/plugin/goimports.go +++ b/plugin/goimports.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/goimports_test.go b/plugin/goimports_test.go index f39529c..08ac8ba 100644 --- a/plugin/goimports_test.go +++ b/plugin/goimports_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin_test import ( diff --git a/plugin/gomock.go b/plugin/gomock.go index 818a651..c52fba0 100644 --- a/plugin/gomock.go +++ b/plugin/gomock.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/gomock_test.go b/plugin/gomock_test.go index fd460a8..0ca6638 100644 --- a/plugin/gomock_test.go +++ b/plugin/gomock_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/gotag.go b/plugin/gotag.go index a22c859..31ea529 100644 --- a/plugin/gotag.go +++ b/plugin/gotag.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/gotag_test.go b/plugin/gotag_test.go index 3e69150..d6db4b6 100644 --- a/plugin/gotag_test.go +++ b/plugin/gotag_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/openapi.go b/plugin/openapi.go index c62d04b..b56f220 100644 --- a/plugin/openapi.go +++ b/plugin/openapi.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/openapi_test.go b/plugin/openapi_test.go index e18f349..2acbdca 100644 --- a/plugin/openapi_test.go +++ b/plugin/openapi_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/plugin.go b/plugin/plugin.go index 74bb548..bcd0b8c 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package plugin provides the ability to implement extension functionality using plugins. package plugin diff --git a/plugin/plugin_test.go b/plugin/plugin_test.go index 253e567..a234909 100644 --- a/plugin/plugin_test.go +++ b/plugin/plugin_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/plugins.go b/plugin/plugins.go index 829e3b8..4182f4b 100644 --- a/plugin/plugins.go +++ b/plugin/plugins.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + //go:build !experimental // +build !experimental diff --git a/plugin/plugins_all.go b/plugin/plugins_all.go index 2bde6b1..b0f2907 100644 --- a/plugin/plugins_all.go +++ b/plugin/plugins_all.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + //go:build experimental // +build experimental diff --git a/plugin/swagger.go b/plugin/swagger.go index 5e25b58..2e46016 100644 --- a/plugin/swagger.go +++ b/plugin/swagger.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/swagger_test.go b/plugin/swagger_test.go index b2788c4..8801042 100644 --- a/plugin/swagger_test.go +++ b/plugin/swagger_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/sync/file.go b/plugin/sync/file.go index cd4a89e..1976b88 100644 --- a/plugin/sync/file.go +++ b/plugin/sync/file.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package sync import ( diff --git a/plugin/sync/file_mock.go b/plugin/sync/file_mock.go index da73555..23ebec8 100644 --- a/plugin/sync/file_mock.go +++ b/plugin/sync/file_mock.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Code generated by MockGen. DO NOT EDIT. // Source: file.go diff --git a/plugin/sync/git.go b/plugin/sync/git.go index ba14801..888f6c7 100644 --- a/plugin/sync/git.go +++ b/plugin/sync/git.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package sync import ( diff --git a/plugin/sync/git_mock.go b/plugin/sync/git_mock.go index a9ad15b..b539d8f 100644 --- a/plugin/sync/git_mock.go +++ b/plugin/sync/git_mock.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Code generated by MockGen. DO NOT EDIT. // Source: git.go diff --git a/plugin/sync/sync_git.go b/plugin/sync/sync_git.go index 55c12eb..caec3b7 100644 --- a/plugin/sync/sync_git.go +++ b/plugin/sync/sync_git.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package sync uses the post-plugin extension point to push the generated PB stub code to a remote git repository. package sync diff --git a/plugin/sync/sync_git_test.go b/plugin/sync/sync_git_test.go index 2570f28..ef22158 100644 --- a/plugin/sync/sync_git_test.go +++ b/plugin/sync/sync_git_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package sync import ( diff --git a/plugin/validate.go b/plugin/validate.go index 33cfe3e..4d75134 100644 --- a/plugin/validate.go +++ b/plugin/validate.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/plugin/validate_test.go b/plugin/validate_test.go index fae6a05..ca8f5d7 100644 --- a/plugin/validate_test.go +++ b/plugin/validate_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package plugin import ( diff --git a/testcase/apidocs/helloworld.proto b/testcase/apidocs/helloworld.proto index d62c1da..1cf2221 100644 --- a/testcase/apidocs/helloworld.proto +++ b/testcase/apidocs/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/apidocs/helloworld_comment.proto b/testcase/apidocs/helloworld_comment.proto index 12881f7..208423d 100644 --- a/testcase/apidocs/helloworld_comment.proto +++ b/testcase/apidocs/helloworld_comment.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/apidocs/helloworld_restful.proto b/testcase/apidocs/helloworld_restful.proto index 0896a78..582b39a 100644 --- a/testcase/apidocs/helloworld_restful.proto +++ b/testcase/apidocs/helloworld_restful.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/1-without-import/helloworld.proto b/testcase/create/1-without-import/helloworld.proto index 3ba5955..5ad0754 100644 --- a/testcase/create/1-without-import/helloworld.proto +++ b/testcase/create/1-without-import/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/10-validate/abc/abc.proto b/testcase/create/10-validate/abc/abc.proto index 87475ac..81a727b 100644 --- a/testcase/create/10-validate/abc/abc.proto +++ b/testcase/create/10-validate/abc/abc.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package abc; diff --git a/testcase/create/10-validate/helloworld.proto b/testcase/create/10-validate/helloworld.proto index 6d222a7..94af299 100644 --- a/testcase/create/10-validate/helloworld.proto +++ b/testcase/create/10-validate/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/11.same-service-same-import/common/common.proto b/testcase/create/11.same-service-same-import/common/common.proto index 9ebc833..c6aabf0 100644 --- a/testcase/create/11.same-service-same-import/common/common.proto +++ b/testcase/create/11.same-service-same-import/common/common.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld.common; diff --git a/testcase/create/11.same-service-same-import/service1/service1.proto b/testcase/create/11.same-service-same-import/service1/service1.proto index 4269b32..c83f4f8 100644 --- a/testcase/create/11.same-service-same-import/service1/service1.proto +++ b/testcase/create/11.same-service-same-import/service1/service1.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld.service1; diff --git a/testcase/create/11.same-service-same-import/service2/service2.proto b/testcase/create/11.same-service-same-import/service2/service2.proto index 380076d..d56d27e 100644 --- a/testcase/create/11.same-service-same-import/service2/service2.proto +++ b/testcase/create/11.same-service-same-import/service2/service2.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld.service2; diff --git a/testcase/create/2-multi-pb-same-package/hello.proto b/testcase/create/2-multi-pb-same-package/hello.proto index 8e12cad..1f7b198 100644 --- a/testcase/create/2-multi-pb-same-package/hello.proto +++ b/testcase/create/2-multi-pb-same-package/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/testcase/create/2-multi-pb-same-package/message.proto b/testcase/create/2-multi-pb-same-package/message.proto index fbf5f65..abd5a1f 100644 --- a/testcase/create/2-multi-pb-same-package/message.proto +++ b/testcase/create/2-multi-pb-same-package/message.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/testcase/create/2.1-multi-pb-same-package-duplicate-proto/hello.proto b/testcase/create/2.1-multi-pb-same-package-duplicate-proto/hello.proto index 986531a..43b6774 100644 --- a/testcase/create/2.1-multi-pb-same-package-duplicate-proto/hello.proto +++ b/testcase/create/2.1-multi-pb-same-package-duplicate-proto/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/testcase/create/2.1-multi-pb-same-package-duplicate-proto/message.proto b/testcase/create/2.1-multi-pb-same-package-duplicate-proto/message.proto index e407dee..4b13080 100644 --- a/testcase/create/2.1-multi-pb-same-package-duplicate-proto/message.proto +++ b/testcase/create/2.1-multi-pb-same-package-duplicate-proto/message.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package hello; diff --git a/testcase/create/3-multi-pb-diff-package/helloworld.proto b/testcase/create/3-multi-pb-diff-package/helloworld.proto index 60c0e77..2dc7679 100644 --- a/testcase/create/3-multi-pb-diff-package/helloworld.proto +++ b/testcase/create/3-multi-pb-diff-package/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/3-multi-pb-diff-package/request.proto b/testcase/create/3-multi-pb-diff-package/request.proto index 28cdf77..cf90e02 100644 --- a/testcase/create/3-multi-pb-diff-package/request.proto +++ b/testcase/create/3-multi-pb-diff-package/request.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package request; diff --git a/testcase/create/3-multi-pb-diff-package/response.proto b/testcase/create/3-multi-pb-diff-package/response.proto index 75b88e5..6f7f760 100644 --- a/testcase/create/3-multi-pb-diff-package/response.proto +++ b/testcase/create/3-multi-pb-diff-package/response.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package response; diff --git a/testcase/create/4.1-multi-pb-same-package-diff-protodir/helloworld.proto b/testcase/create/4.1-multi-pb-same-package-diff-protodir/helloworld.proto index 2042599..e51a523 100644 --- a/testcase/create/4.1-multi-pb-same-package-diff-protodir/helloworld.proto +++ b/testcase/create/4.1-multi-pb-same-package-diff-protodir/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/4.1-multi-pb-same-package-diff-protodir/request/request.proto b/testcase/create/4.1-multi-pb-same-package-diff-protodir/request/request.proto index f11071c..03948f9 100644 --- a/testcase/create/4.1-multi-pb-same-package-diff-protodir/request/request.proto +++ b/testcase/create/4.1-multi-pb-same-package-diff-protodir/request/request.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/4.1-multi-pb-same-package-diff-protodir/response/response.proto b/testcase/create/4.1-multi-pb-same-package-diff-protodir/response/response.proto index 18060aa..430cc9a 100644 --- a/testcase/create/4.1-multi-pb-same-package-diff-protodir/response/response.proto +++ b/testcase/create/4.1-multi-pb-same-package-diff-protodir/response/response.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/4.2-multi-pb-same-package-diff-protodir/helloworld.proto b/testcase/create/4.2-multi-pb-same-package-diff-protodir/helloworld.proto index 3307725..e06f7c3 100644 --- a/testcase/create/4.2-multi-pb-same-package-diff-protodir/helloworld.proto +++ b/testcase/create/4.2-multi-pb-same-package-diff-protodir/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/4.2-multi-pb-same-package-diff-protodir/request/request.proto b/testcase/create/4.2-multi-pb-same-package-diff-protodir/request/request.proto index f11071c..03948f9 100644 --- a/testcase/create/4.2-multi-pb-same-package-diff-protodir/request/request.proto +++ b/testcase/create/4.2-multi-pb-same-package-diff-protodir/request/request.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/4.2-multi-pb-same-package-diff-protodir/response/response.proto b/testcase/create/4.2-multi-pb-same-package-diff-protodir/response/response.proto index 18060aa..430cc9a 100644 --- a/testcase/create/4.2-multi-pb-same-package-diff-protodir/response/response.proto +++ b/testcase/create/4.2-multi-pb-same-package-diff-protodir/response/response.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/a.proto b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/a.proto index 2e06f86..b1aa32d 100644 --- a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/a.proto +++ b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/a.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto2"; package trpc.trpcprotocol.common; diff --git a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/b.proto b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/b.proto index 9b06b06..c829721 100644 --- a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/b.proto +++ b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/common/b.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto2"; package trpc.trpcprotocol.common; diff --git a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/helloworld.proto b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/helloworld.proto index dc0de9d..0b055d8 100755 --- a/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/helloworld.proto +++ b/testcase/create/5-multi-pb-same-pkgdirective-diff-gopkgoption/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto2"; package trpc.trpcprotocol.common; diff --git a/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/cos/comm.proto b/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/cos/comm.proto index ca49d52..bd3f637 100644 --- a/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/cos/comm.proto +++ b/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/cos/comm.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package cobus; diff --git a/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/pattern.proto b/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/pattern.proto index 43b7088..cd9f081 100644 --- a/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/pattern.proto +++ b/testcase/create/5.1-multi-pb-diff-pkgdirective-same-gopkgoption/pattern.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package yotta_index.pb; diff --git a/testcase/create/6-other-scene/google/google.proto b/testcase/create/6-other-scene/google/google.proto index 7d75ea5..6aa462d 100644 --- a/testcase/create/6-other-scene/google/google.proto +++ b/testcase/create/6-other-scene/google/google.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; import "google/protobuf/any.proto"; diff --git a/testcase/create/6-other-scene/hello_service/hello.proto b/testcase/create/6-other-scene/hello_service/hello.proto index b45fd97..348a428 100644 --- a/testcase/create/6-other-scene/hello_service/hello.proto +++ b/testcase/create/6-other-scene/hello_service/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.test.helloworld; diff --git a/testcase/create/7-plugins/gotag/gotag.proto b/testcase/create/7-plugins/gotag/gotag.proto index 0e56ed6..f131387 100644 --- a/testcase/create/7-plugins/gotag/gotag.proto +++ b/testcase/create/7-plugins/gotag/gotag.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.test.gotag; diff --git a/testcase/create/8-service-not-existed/helloworld.proto b/testcase/create/8-service-not-existed/helloworld.proto index d2293ff..29ed836 100644 --- a/testcase/create/8-service-not-existed/helloworld.proto +++ b/testcase/create/8-service-not-existed/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/create/9-restful/helloworld.proto b/testcase/create/9-restful/helloworld.proto index c6f4664..18f4e4c 100644 --- a/testcase/create/9-restful/helloworld.proto +++ b/testcase/create/9-restful/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/plugins/format/helloworld.proto b/testcase/plugins/format/helloworld.proto index af9aeae..df1fab3 100644 --- a/testcase/plugins/format/helloworld.proto +++ b/testcase/plugins/format/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/testcase/plugins/gotag/gotag.proto b/testcase/plugins/gotag/gotag.proto index 0e56ed6..f131387 100644 --- a/testcase/plugins/gotag/gotag.proto +++ b/testcase/plugins/gotag/gotag.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.test.gotag; diff --git a/testcase/plugins/validate/helloworld.proto b/testcase/plugins/validate/helloworld.proto index 65f786b..1536f90 100644 --- a/testcase/plugins/validate/helloworld.proto +++ b/testcase/plugins/validate/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package trpc.app.hello; diff --git a/tpl/funcmap.go b/tpl/funcmap.go index d273baf..657e3e9 100644 --- a/tpl/funcmap.go +++ b/tpl/funcmap.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package tpl encapsulates Go's template operations and // supports generating stub codes and configurations based on template files. package tpl diff --git a/tpl/tpl.go b/tpl/tpl.go index 88a3ab3..1371f9a 100644 --- a/tpl/tpl.go +++ b/tpl/tpl.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package tpl encapsulates go's template operations and // supports generating stub codes and configurations based on template files. package tpl diff --git a/trpc/trpc.go b/trpc/trpc.go index bb9f1b9..5478833 100644 --- a/trpc/trpc.go +++ b/trpc/trpc.go @@ -1,18 +1,12 @@ -/* -Copyright © 2020 zhijiezhang +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. -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/util/apidocs/apidocs.go b/util/apidocs/apidocs.go index a6bb232..744c905 100644 --- a/util/apidocs/apidocs.go +++ b/util/apidocs/apidocs.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package apidocs implements the ability to generate API documentation. package apidocs diff --git a/util/apidocs/definitions.go b/util/apidocs/definitions.go index 93a7a2d..693da73 100644 --- a/util/apidocs/definitions.go +++ b/util/apidocs/definitions.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package apidocs provides functionality for handling API documentation. // This package contains structures and methods related to generating API documentation in the // apidocs JSON format. It includes models, definitions, and various utility functions. diff --git a/util/apidocs/info.go b/util/apidocs/info.go index 0b9d957..509112c 100644 --- a/util/apidocs/info.go +++ b/util/apidocs/info.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/info_test.go b/util/apidocs/info_test.go index 1c788e8..114c495 100644 --- a/util/apidocs/info_test.go +++ b/util/apidocs/info_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/method.go b/util/apidocs/method.go index 3ab664c..edff6a3 100644 --- a/util/apidocs/method.go +++ b/util/apidocs/method.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import "sort" diff --git a/util/apidocs/openapi/gen.go b/util/apidocs/openapi/gen.go index 00933a7..049dbab 100644 --- a/util/apidocs/openapi/gen.go +++ b/util/apidocs/openapi/gen.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package openapi provides the ability to manipulate OpenAPI documents. package openapi diff --git a/util/apidocs/openapi/gen_test.go b/util/apidocs/openapi/gen_test.go index 3c568ae..313619e 100644 --- a/util/apidocs/openapi/gen_test.go +++ b/util/apidocs/openapi/gen_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package openapi import ( diff --git a/util/apidocs/openapi_v3.go b/util/apidocs/openapi_v3.go index d82a30d..bfce6bb 100644 --- a/util/apidocs/openapi_v3.go +++ b/util/apidocs/openapi_v3.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/openapi_v3_test.go b/util/apidocs/openapi_v3_test.go index 5532536..b7207de 100644 --- a/util/apidocs/openapi_v3_test.go +++ b/util/apidocs/openapi_v3_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/ordered_map.go b/util/apidocs/ordered_map.go index 2bf0f66..c8ebabc 100644 --- a/util/apidocs/ordered_map.go +++ b/util/apidocs/ordered_map.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/ordered_map_test.go b/util/apidocs/ordered_map_test.go index 60301e2..69403d7 100644 --- a/util/apidocs/ordered_map_test.go +++ b/util/apidocs/ordered_map_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/parameter.go b/util/apidocs/parameter.go index e3ab8c6..c2bc75b 100644 --- a/util/apidocs/parameter.go +++ b/util/apidocs/parameter.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs // ParametersStruct defines the structure of input parameters information for methods in Swagger JSON format. diff --git a/util/apidocs/path.go b/util/apidocs/path.go index 99da5c9..83fab1f 100644 --- a/util/apidocs/path.go +++ b/util/apidocs/path.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/pathx.go b/util/apidocs/pathx.go index 6cce651..9a7f650 100644 --- a/util/apidocs/pathx.go +++ b/util/apidocs/pathx.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs // MethodStructX defines the detailed information of a method in OpenAPI JSON. diff --git a/util/apidocs/property.go b/util/apidocs/property.go index 06c55b9..a93f3b4 100644 --- a/util/apidocs/property.go +++ b/util/apidocs/property.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/swagger.go b/util/apidocs/swagger.go index 140fa97..5721451 100644 --- a/util/apidocs/swagger.go +++ b/util/apidocs/swagger.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/swagger/gen.go b/util/apidocs/swagger/gen.go index 691071b..0a5fdaa 100644 --- a/util/apidocs/swagger/gen.go +++ b/util/apidocs/swagger/gen.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package swagger provides the ability to manipulate swagger documentation. package swagger diff --git a/util/apidocs/swagger/gen_test.go b/util/apidocs/swagger/gen_test.go index e45b0e3..6a1a22b 100644 --- a/util/apidocs/swagger/gen_test.go +++ b/util/apidocs/swagger/gen_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package swagger import ( diff --git a/util/apidocs/swagger_test.go b/util/apidocs/swagger_test.go index f7ef069..3ada8ba 100644 --- a/util/apidocs/swagger_test.go +++ b/util/apidocs/swagger_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package apidocs import ( diff --git a/util/apidocs/testcase/hello.proto b/util/apidocs/testcase/hello.proto index 2a8edef..cdf7e3a 100644 --- a/util/apidocs/testcase/hello.proto +++ b/util/apidocs/testcase/hello.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/util/apidocs/x/types.go b/util/apidocs/x/types.go index ee21393..54372e1 100644 --- a/util/apidocs/x/types.go +++ b/util/apidocs/x/types.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package x provides common utilities for documentation operations. package x diff --git a/util/apidocs/x/types_test.go b/util/apidocs/x/types_test.go index 11fbd0c..3f2b7c3 100644 --- a/util/apidocs/x/types_test.go +++ b/util/apidocs/x/types_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package x import ( diff --git a/util/browser/browser.go b/util/browser/browser.go index cfc2d58..f852228 100644 --- a/util/browser/browser.go +++ b/util/browser/browser.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package browser provides utilities for interacting with users' browsers. package browser diff --git a/util/fb/fb_test.go b/util/fb/fb_test.go index fb52f5a..e581e01 100644 --- a/util/fb/fb_test.go +++ b/util/fb/fb_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fb import ( diff --git a/util/fb/fbs.go b/util/fb/fbs.go index f845559..9c39a8c 100644 --- a/util/fb/fbs.go +++ b/util/fb/fbs.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package fb encapsulates functions related to .fbs files. package fb diff --git a/util/fb/option.go b/util/fb/option.go index fe1a89f..cb23faf 100644 --- a/util/fb/option.go +++ b/util/fb/option.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fb // The Option type implements the functional options pattern. diff --git a/util/fs/copy.go b/util/fs/copy.go index db6af5a..60078ef 100644 --- a/util/fs/copy.go +++ b/util/fs/copy.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fs import ( diff --git a/util/fs/copy_test.go b/util/fs/copy_test.go index 0a09017..e6cd3bf 100644 --- a/util/fs/copy_test.go +++ b/util/fs/copy_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fs import ( diff --git a/util/fs/file.go b/util/fs/file.go index 55c247c..aea8da6 100644 --- a/util/fs/file.go +++ b/util/fs/file.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package fs implements cross-platform file system capabilities. package fs diff --git a/util/fs/file_test.go b/util/fs/file_test.go index a547d99..cb29e10 100644 --- a/util/fs/file_test.go +++ b/util/fs/file_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fs import ( diff --git a/util/fs/move.go b/util/fs/move.go index 1f123cb..663f9f5 100644 --- a/util/fs/move.go +++ b/util/fs/move.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fs import ( diff --git a/util/fs/move_test.go b/util/fs/move_test.go index 52dfa9b..e709ebf 100644 --- a/util/fs/move_test.go +++ b/util/fs/move_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package fs import ( diff --git a/util/lang/lang.go b/util/lang/lang.go index d025a79..21ce866 100644 --- a/util/lang/lang.go +++ b/util/lang/lang.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package lang encapsulates language-related functionality. package lang diff --git a/util/lang/lang_test.go b/util/lang/lang_test.go index 2f6ea5f..ab226c4 100644 --- a/util/lang/lang_test.go +++ b/util/lang/lang_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package lang import ( diff --git a/util/log/color.go b/util/log/color.go index be2dd8f..da2464b 100644 --- a/util/log/color.go +++ b/util/log/color.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + //go:build !windows // +build !windows diff --git a/util/log/color_windows.go b/util/log/color_windows.go index 6c48bc9..be4a872 100644 --- a/util/log/color_windows.go +++ b/util/log/color_windows.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + //go:build windows // +build windows diff --git a/util/log/log.go b/util/log/log.go index 5499bd9..d10b7e1 100644 --- a/util/log/log.go +++ b/util/log/log.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package log encapsulates logging functionalities of the project. package log diff --git a/util/log/log_test.go b/util/log/log_test.go index a7dbc2f..aa0f5a9 100644 --- a/util/log/log_test.go +++ b/util/log/log_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package log import ( diff --git a/util/paths/trpc.go b/util/paths/trpc.go index 307f785..d599165 100755 --- a/util/paths/trpc.go +++ b/util/paths/trpc.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package paths provides functionality related to file paths within the project. package paths diff --git a/util/paths/trpc_test.go b/util/paths/trpc_test.go index 348214e..f338bcd 100644 --- a/util/paths/trpc_test.go +++ b/util/paths/trpc_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package paths import ( diff --git a/util/pb/option.go b/util/pb/option.go index 7cae47a..947054c 100644 --- a/util/pb/option.go +++ b/util/pb/option.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package pb type options struct { diff --git a/util/pb/protoc.go b/util/pb/protoc.go index af01c4e..7df3c6c 100644 --- a/util/pb/protoc.go +++ b/util/pb/protoc.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package pb encapsulates the protoc execution logic. package pb diff --git a/util/pb/protoc_test.go b/util/pb/protoc_test.go index 33780f0..b7c70ed 100644 --- a/util/pb/protoc_test.go +++ b/util/pb/protoc_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package pb import ( diff --git a/util/pb/protoc_version.go b/util/pb/protoc_version.go index 6b027da..0e86035 100644 --- a/util/pb/protoc_version.go +++ b/util/pb/protoc_version.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package pb import ( diff --git a/util/pb/protoc_version_test.go b/util/pb/protoc_version_test.go index 71934d8..a8959e0 100644 --- a/util/pb/protoc_version_test.go +++ b/util/pb/protoc_version_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package pb import ( diff --git a/util/pb/testcase/helloworld-import-trpc.proto b/util/pb/testcase/helloworld-import-trpc.proto index 3329cf5..e5dc4a6 100644 --- a/util/pb/testcase/helloworld-import-trpc.proto +++ b/util/pb/testcase/helloworld-import-trpc.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/util/pb/testcase/helloworld.proto b/util/pb/testcase/helloworld.proto index fd08976..97bb3b5 100644 --- a/util/pb/testcase/helloworld.proto +++ b/util/pb/testcase/helloworld.proto @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + syntax = "proto3"; package helloworld; diff --git a/util/promptui/promptui.go b/util/promptui/promptui.go index af30ac3..24acb1c 100644 --- a/util/promptui/promptui.go +++ b/util/promptui/promptui.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package promptui provides interactive prompts for command-line applications. package promptui diff --git a/util/semver/semver.go b/util/semver/semver.go index 78601ef..a85a0a7 100644 --- a/util/semver/semver.go +++ b/util/semver/semver.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package semver is a library for parsing tool versions. package semver diff --git a/util/semver/semver_test.go b/util/semver/semver_test.go index 7bdd327..e96c369 100644 --- a/util/semver/semver_test.go +++ b/util/semver/semver_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package semver import "testing" diff --git a/util/style/gofmt.go b/util/style/gofmt.go index c435bb9..309c460 100644 --- a/util/style/gofmt.go +++ b/util/style/gofmt.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + // Package style provides formatting functions. package style diff --git a/util/style/gofmt_test.go b/util/style/gofmt_test.go index 4d8f753..ee11b61 100644 --- a/util/style/gofmt_test.go +++ b/util/style/gofmt_test.go @@ -1,3 +1,12 @@ +// Tencent is pleased to support the open source community by making tRPC available. +// +// Copyright (C) 2023 THL A29 Limited, a Tencent company. +// All rights reserved. +// +// If you have downloaded a copy of the tRPC source code from Tencent, +// please note that tRPC source code is licensed under the Apache 2.0 License, +// A copy of the Apache 2.0 License is included in this file. + package style_test import (