From 776d64188352e52ab451a1dfe75a4493bee880b4 Mon Sep 17 00:00:00 2001 From: zoumo Date: Wed, 27 Sep 2023 15:42:41 +0800 Subject: [PATCH] chore: add license header to go files --- cert/key.go | 14 +++++++++++ cert/pem.go | 28 ++++++++++----------- cert/pem_test.go | 28 ++++++++++----------- cert/tls.go | 28 ++++++++++----------- cert/types.go | 14 +++++++++++ cli/injection/inject.go | 14 +++++++++++ cli/injection/mixin.go | 2 +- cli/injection/types.go | 14 +++++++++++ cli/plugin/interfrace.go | 14 +++++++++++ cli/plugin/plugin.go | 14 +++++++++++ exec/exec.go | 27 ++++++++++---------- exec/exec_test.go | 28 ++++++++++----------- exec/multiwriter.go | 27 ++++++++++---------- exec/probe.go | 14 +++++++++++ exec/probe_handler.go | 14 +++++++++++ execd/execd.go | 28 ++++++++++----------- execd/execd_test.go | 28 ++++++++++----------- fileinfo/info.go | 14 +++++++++++ fileinfo/util.go | 14 +++++++++++ heap/heap.go | 14 +++++++++++ heap/heap_test.go | 14 +++++++++++ lock/maxinflight/max_inflight.go | 14 +++++++++++ lock/maxinflight/max_inflight_bench_test.go | 14 +++++++++++ lock/maxinflight/max_inflight_test.go | 14 +++++++++++ netutil/aggregated_listener.go | 28 ++++++++++----------- netutil/aggregated_listener_test.go | 28 ++++++++++----------- netutil/balanced_dailer.go | 1 + netutil/net.go | 28 ++++++++++----------- netutil/net_test.go | 28 ++++++++++----------- pointer/builtin.go | 14 +++++++++++ queue/queue.go | 28 ++++++++++----------- reflection/reflect.go | 14 +++++++++++ reflection/reflect_test.go | 14 +++++++++++ reflection/testdata/gen/main.go | 14 +++++++++++ reflection/testdata/testdata.go | 14 +++++++++++ registry/registry.go | 28 ++++++++++----------- registry/registry_test.go | 28 ++++++++++----------- retry/retry.go | 14 +++++++++++ shell/shell.go | 28 ++++++++++----------- shell/shell_test.go | 28 ++++++++++----------- signal/signal.go | 28 ++++++++++----------- ssh/krb5/krb5.go | 14 +++++++++++ ssh/krb5/krb5_cache.go | 14 +++++++++++ ssh/scp/const.go | 14 +++++++++++ ssh/scp/reader.go | 14 +++++++++++ ssh/scp/scp.go | 14 +++++++++++ ssh/scp/session.go | 14 +++++++++++ ssh/scp/util.go | 14 +++++++++++ ssh/shell/shell.go | 14 +++++++++++ ssh/ssh.go | 14 +++++++++++ textencoding/transform.go | 14 +++++++++++ textencoding/transform_test.go | 14 +++++++++++ 52 files changed, 684 insertions(+), 269 deletions(-) diff --git a/cert/key.go b/cert/key.go index 8a84c2a5..283c50f9 100644 --- a/cert/key.go +++ b/cert/key.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 cert import ( diff --git a/cert/pem.go b/cert/pem.go index a7666203..fa5e5172 100644 --- a/cert/pem.go +++ b/cert/pem.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 cert diff --git a/cert/pem_test.go b/cert/pem_test.go index 675f7697..28799ebc 100644 --- a/cert/pem_test.go +++ b/cert/pem_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 cert diff --git a/cert/tls.go b/cert/tls.go index 6103891a..a3f52b7d 100644 --- a/cert/tls.go +++ b/cert/tls.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 cert diff --git a/cert/types.go b/cert/types.go index 505f83cc..a1a1422e 100644 --- a/cert/types.go +++ b/cert/types.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 cert import ( diff --git a/cli/injection/inject.go b/cli/injection/inject.go index 6544d97e..90ef4cca 100644 --- a/cli/injection/inject.go +++ b/cli/injection/inject.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 injection import ( diff --git a/cli/injection/mixin.go b/cli/injection/mixin.go index 91e5bfc8..7f6f4f50 100644 --- a/cli/injection/mixin.go +++ b/cli/injection/mixin.go @@ -1,4 +1,4 @@ -// Copyright 2022 jim.zoumo@gmail.com +// Copyright 2023 jim.zoumo@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/cli/injection/types.go b/cli/injection/types.go index f5fd887d..1d99d8f7 100644 --- a/cli/injection/types.go +++ b/cli/injection/types.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 injection import ( diff --git a/cli/plugin/interfrace.go b/cli/plugin/interfrace.go index c9204047..b385cac3 100644 --- a/cli/plugin/interfrace.go +++ b/cli/plugin/interfrace.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 plugin import ( diff --git a/cli/plugin/plugin.go b/cli/plugin/plugin.go index 588691c0..6cb057b4 100644 --- a/cli/plugin/plugin.go +++ b/cli/plugin/plugin.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 plugin import ( diff --git a/exec/exec.go b/exec/exec.go index 42c7edd9..7a6ee8e5 100644 --- a/exec/exec.go +++ b/exec/exec.go @@ -1,18 +1,17 @@ -/* -Copyright 2020 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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 +// Copyright 2023 jim.zoumo@gmail.com +// +// 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. -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 exec import ( diff --git a/exec/exec_test.go b/exec/exec_test.go index 216caa42..5438e817 100644 --- a/exec/exec_test.go +++ b/exec/exec_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2020 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 exec diff --git a/exec/multiwriter.go b/exec/multiwriter.go index 6cddd51b..e1b5e258 100644 --- a/exec/multiwriter.go +++ b/exec/multiwriter.go @@ -1,18 +1,17 @@ -/* -Copyright 2020 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. +// Copyright 2023 jim.zoumo@gmail.com +// +// 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. -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 exec import ( diff --git a/exec/probe.go b/exec/probe.go index a85832f5..79979449 100644 --- a/exec/probe.go +++ b/exec/probe.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 exec import ( diff --git a/exec/probe_handler.go b/exec/probe_handler.go index 2b4e2915..6a8341ca 100644 --- a/exec/probe_handler.go +++ b/exec/probe_handler.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 exec import ( diff --git a/execd/execd.go b/execd/execd.go index c5b29558..551cc2fa 100644 --- a/execd/execd.go +++ b/execd/execd.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 execd diff --git a/execd/execd_test.go b/execd/execd_test.go index d1016c18..eb82a1b8 100644 --- a/execd/execd_test.go +++ b/execd/execd_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 execd diff --git a/fileinfo/info.go b/fileinfo/info.go index a7629e1b..7cfaf85b 100644 --- a/fileinfo/info.go +++ b/fileinfo/info.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 fileinfo import ( diff --git a/fileinfo/util.go b/fileinfo/util.go index 9e87a589..4db686fb 100644 --- a/fileinfo/util.go +++ b/fileinfo/util.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 fileinfo import "os" diff --git a/heap/heap.go b/heap/heap.go index 61a78bfd..08fab89a 100644 --- a/heap/heap.go +++ b/heap/heap.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 heap import ( diff --git a/heap/heap_test.go b/heap/heap_test.go index 1f9510ab..cb013335 100644 --- a/heap/heap_test.go +++ b/heap/heap_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 heap import ( diff --git a/lock/maxinflight/max_inflight.go b/lock/maxinflight/max_inflight.go index ecf4b44f..1e6516b5 100644 --- a/lock/maxinflight/max_inflight.go +++ b/lock/maxinflight/max_inflight.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 maxinflight import ( diff --git a/lock/maxinflight/max_inflight_bench_test.go b/lock/maxinflight/max_inflight_bench_test.go index 8746012e..de2af1d6 100644 --- a/lock/maxinflight/max_inflight_bench_test.go +++ b/lock/maxinflight/max_inflight_bench_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 maxinflight import ( diff --git a/lock/maxinflight/max_inflight_test.go b/lock/maxinflight/max_inflight_test.go index 601c15a9..ed19957b 100644 --- a/lock/maxinflight/max_inflight_test.go +++ b/lock/maxinflight/max_inflight_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 maxinflight import ( diff --git a/netutil/aggregated_listener.go b/netutil/aggregated_listener.go index 7193e415..d46a914b 100644 --- a/netutil/aggregated_listener.go +++ b/netutil/aggregated_listener.go @@ -1,18 +1,16 @@ -/* -Copyright 2020 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 netutil diff --git a/netutil/aggregated_listener_test.go b/netutil/aggregated_listener_test.go index 051f22d8..2e9591f0 100644 --- a/netutil/aggregated_listener_test.go +++ b/netutil/aggregated_listener_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2020 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 netutil diff --git a/netutil/balanced_dailer.go b/netutil/balanced_dailer.go index 262b1405..231edcae 100644 --- a/netutil/balanced_dailer.go +++ b/netutil/balanced_dailer.go @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package netutil import ( diff --git a/netutil/net.go b/netutil/net.go index 12fffa76..de400c2c 100644 --- a/netutil/net.go +++ b/netutil/net.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 netutil diff --git a/netutil/net_test.go b/netutil/net_test.go index 2476ae21..64bfcb58 100644 --- a/netutil/net_test.go +++ b/netutil/net_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 netutil diff --git a/pointer/builtin.go b/pointer/builtin.go index 148e4c12..68fbc116 100644 --- a/pointer/builtin.go +++ b/pointer/builtin.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 pointer func Bool(t bool) *bool { diff --git a/queue/queue.go b/queue/queue.go index b8e037e8..02e9e722 100644 --- a/queue/queue.go +++ b/queue/queue.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 queue diff --git a/reflection/reflect.go b/reflection/reflect.go index 44a051ee..b7ca27cf 100644 --- a/reflection/reflect.go +++ b/reflection/reflect.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 reflection import "reflect" diff --git a/reflection/reflect_test.go b/reflection/reflect_test.go index 5a4a6eb1..461c487f 100644 --- a/reflection/reflect_test.go +++ b/reflection/reflect_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 reflection import ( diff --git a/reflection/testdata/gen/main.go b/reflection/testdata/gen/main.go index 832b9542..2df779f0 100644 --- a/reflection/testdata/gen/main.go +++ b/reflection/testdata/gen/main.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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/reflection/testdata/testdata.go b/reflection/testdata/testdata.go index dca6ffa3..e3ffa35c 100644 --- a/reflection/testdata/testdata.go +++ b/reflection/testdata/testdata.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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. + // +build !ignore_autogenerated // Code generated by controller-gen. DO NOT EDIT. diff --git a/registry/registry.go b/registry/registry.go index f010bf09..92a5b4b3 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 registry diff --git a/registry/registry_test.go b/registry/registry_test.go index f176107b..8ca0e10b 100644 --- a/registry/registry_test.go +++ b/registry/registry_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 registry diff --git a/retry/retry.go b/retry/retry.go index b34694e7..c15a254e 100644 --- a/retry/retry.go +++ b/retry/retry.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 retry import ( diff --git a/shell/shell.go b/shell/shell.go index 0deac30a..a1449279 100644 --- a/shell/shell.go +++ b/shell/shell.go @@ -1,18 +1,16 @@ -/* -Copyright 2019 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 shell diff --git a/shell/shell_test.go b/shell/shell_test.go index a879036c..f94f3185 100644 --- a/shell/shell_test.go +++ b/shell/shell_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2019 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 shell diff --git a/signal/signal.go b/signal/signal.go index 0164fd21..9f1b740e 100644 --- a/signal/signal.go +++ b/signal/signal.go @@ -1,18 +1,16 @@ -/* -Copyright 2018 Jim Zhang (jim.zoumo@gmail.com). All rights reserved. - -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. -*/ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 signal diff --git a/ssh/krb5/krb5.go b/ssh/krb5/krb5.go index 7cf1a41c..23804986 100644 --- a/ssh/krb5/krb5.go +++ b/ssh/krb5/krb5.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 krb5 import ( diff --git a/ssh/krb5/krb5_cache.go b/ssh/krb5/krb5_cache.go index 7c6bf7df..a5a3d19f 100644 --- a/ssh/krb5/krb5_cache.go +++ b/ssh/krb5/krb5_cache.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 krb5 import ( diff --git a/ssh/scp/const.go b/ssh/scp/const.go index ed0b472f..a184cd6b 100644 --- a/ssh/scp/const.go +++ b/ssh/scp/const.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 scp import "os" diff --git a/ssh/scp/reader.go b/ssh/scp/reader.go index e241af25..248cd702 100644 --- a/ssh/scp/reader.go +++ b/ssh/scp/reader.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 scp import ( diff --git a/ssh/scp/scp.go b/ssh/scp/scp.go index d6d796f7..a4c90a39 100644 --- a/ssh/scp/scp.go +++ b/ssh/scp/scp.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 scp import ( diff --git a/ssh/scp/session.go b/ssh/scp/session.go index ef4ce6fe..41d7264d 100644 --- a/ssh/scp/session.go +++ b/ssh/scp/session.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 scp import ( diff --git a/ssh/scp/util.go b/ssh/scp/util.go index 7cc13c0c..51f0563f 100644 --- a/ssh/scp/util.go +++ b/ssh/scp/util.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 scp import ( diff --git a/ssh/shell/shell.go b/ssh/shell/shell.go index 63bcd073..f99a6ee1 100644 --- a/ssh/shell/shell.go +++ b/ssh/shell/shell.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 shell import ( diff --git a/ssh/ssh.go b/ssh/ssh.go index 94b2e3cc..22a2261b 100644 --- a/ssh/ssh.go +++ b/ssh/ssh.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 ssh import ( diff --git a/textencoding/transform.go b/textencoding/transform.go index 3a083841..5ad4fcdd 100644 --- a/textencoding/transform.go +++ b/textencoding/transform.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 textencoding import ( diff --git a/textencoding/transform_test.go b/textencoding/transform_test.go index b15899b0..e8b4c19e 100644 --- a/textencoding/transform_test.go +++ b/textencoding/transform_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 jim.zoumo@gmail.com +// +// 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 textencoding import (