From 04272b80d49113133836b837409af5be07fbf6a6 Mon Sep 17 00:00:00 2001 From: David Gamba Date: Thu, 4 Jan 2024 23:44:11 -0700 Subject: [PATCH] Add missing copyright notices and update to 2024 --- README.adoc | 2 +- api.go | 8 ++++++++ api_test.go | 8 ++++++++ dag/README.adoc | 2 +- dag/dag.go | 2 +- dag/dag_test.go | 2 +- documentation.go | 2 +- errors.go | 8 ++++++++ example_minimal_test.go | 8 -------- helpers.go | 8 ++++++++ internal/completion/completion.go | 2 +- internal/completion/completion_test.go | 2 +- internal/completion/documentation.go | 2 +- internal/completion/file.go | 2 +- internal/completion/file_test.go | 2 +- internal/help/help.go | 2 +- internal/help/help_test.go | 8 ++++++++ internal/option/option.go | 2 +- internal/option/option_test.go | 2 +- internal/sliceiterator/sliceiterator.go | 2 +- internal/sliceiterator/sliceiterator_test.go | 2 +- interrupt.go | 8 ++++++++ isoption.go | 2 +- isoption_test.go | 2 +- public_api_test.go | 8 ++++++++ testhelpers_test.go | 8 ++++++++ text/variables.go | 2 +- user.go | 2 +- user_help.go | 8 ++++++++ user_options.go | 8 ++++++++ user_test.go | 8 ++++++++ 31 files changed, 107 insertions(+), 27 deletions(-) diff --git a/README.adoc b/README.adoc index 933ca7e..fa1fe63 100644 --- a/README.adoc +++ b/README.adoc @@ -1155,7 +1155,7 @@ StringMap and StringMapVar:: Comma separated key=value? This file is part of go-getoptions. -Copyright (C) 2015-2023 David Gamba Rios +Copyright (C) 2015-2024 David Gamba Rios This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/api.go b/api.go index afd9285..c41b0cc 100644 --- a/api.go +++ b/api.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/api_test.go b/api_test.go index ad7d6d4..5d56f71 100644 --- a/api_test.go +++ b/api_test.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/dag/README.adoc b/dag/README.adoc index dc2861e..2a5d128 100644 --- a/dag/README.adoc +++ b/dag/README.adoc @@ -100,7 +100,7 @@ Finally, having an easy to use `os/exec` wrapper also helps a lot: https://githu This file is part of go-getoptions. -Copyright (C) 2015-2023 David Gamba Rios +Copyright (C) 2015-2024 David Gamba Rios This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/dag/dag.go b/dag/dag.go index 8d3f968..5c14e97 100644 --- a/dag/dag.go +++ b/dag/dag.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/dag/dag_test.go b/dag/dag_test.go index 6a2beea..8d1b94d 100644 --- a/dag/dag_test.go +++ b/dag/dag_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/documentation.go b/documentation.go index 0c9bce8..e4e5158 100644 --- a/documentation.go +++ b/documentation.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/errors.go b/errors.go index 45112ff..f29f288 100644 --- a/errors.go +++ b/errors.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/example_minimal_test.go b/example_minimal_test.go index b20bd7d..68c23f9 100644 --- a/example_minimal_test.go +++ b/example_minimal_test.go @@ -1,11 +1,3 @@ -// This file is part of go-getoptions. -// -// Copyright (C) 2015-2023 David Gamba Rios -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - // These examples demonstrate more intricate uses of the go-getoptions package. package getoptions_test diff --git a/helpers.go b/helpers.go index f2f847c..5020fa0 100644 --- a/helpers.go +++ b/helpers.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/internal/completion/completion.go b/internal/completion/completion.go index ff73d8d..e771a8d 100644 --- a/internal/completion/completion.go +++ b/internal/completion/completion.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/completion/completion_test.go b/internal/completion/completion_test.go index 6d043a5..df25916 100644 --- a/internal/completion/completion_test.go +++ b/internal/completion/completion_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/completion/documentation.go b/internal/completion/documentation.go index d32f8bd..69323e1 100644 --- a/internal/completion/documentation.go +++ b/internal/completion/documentation.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/completion/file.go b/internal/completion/file.go index 356a5af..733c81d 100644 --- a/internal/completion/file.go +++ b/internal/completion/file.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/completion/file_test.go b/internal/completion/file_test.go index 4b9b33c..a9ddb46 100644 --- a/internal/completion/file_test.go +++ b/internal/completion/file_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/help/help.go b/internal/help/help.go index 73fec63..02872e1 100644 --- a/internal/help/help.go +++ b/internal/help/help.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/help/help_test.go b/internal/help/help_test.go index f8fe615..8e73b24 100644 --- a/internal/help/help_test.go +++ b/internal/help/help_test.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package help import ( diff --git a/internal/option/option.go b/internal/option/option.go index f899b31..45d0a8d 100644 --- a/internal/option/option.go +++ b/internal/option/option.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/option/option_test.go b/internal/option/option_test.go index 139a251..4c6b401 100644 --- a/internal/option/option_test.go +++ b/internal/option/option_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/sliceiterator/sliceiterator.go b/internal/sliceiterator/sliceiterator.go index 99ff904..f078a8d 100644 --- a/internal/sliceiterator/sliceiterator.go +++ b/internal/sliceiterator/sliceiterator.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/internal/sliceiterator/sliceiterator_test.go b/internal/sliceiterator/sliceiterator_test.go index 78d252a..250c9bc 100644 --- a/internal/sliceiterator/sliceiterator_test.go +++ b/internal/sliceiterator/sliceiterator_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/interrupt.go b/interrupt.go index f91690d..480f16b 100644 --- a/interrupt.go +++ b/interrupt.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/isoption.go b/isoption.go index ee2e069..d94acde 100644 --- a/isoption.go +++ b/isoption.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/isoption_test.go b/isoption_test.go index ab6bcc3..404cb1c 100644 --- a/isoption_test.go +++ b/isoption_test.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/public_api_test.go b/public_api_test.go index d96af33..640a3a0 100644 --- a/public_api_test.go +++ b/public_api_test.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions_test import ( diff --git a/testhelpers_test.go b/testhelpers_test.go index a50b806..0ffdecd 100644 --- a/testhelpers_test.go +++ b/testhelpers_test.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/text/variables.go b/text/variables.go index 5d4cced..bf0702d 100644 --- a/text/variables.go +++ b/text/variables.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/user.go b/user.go index 2f3e6ac..63bccd7 100644 --- a/user.go +++ b/user.go @@ -1,6 +1,6 @@ // This file is part of go-getoptions. // -// Copyright (C) 2015-2023 David Gamba Rios +// Copyright (C) 2015-2024 David Gamba Rios // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/user_help.go b/user_help.go index cdc6cf5..436c394 100644 --- a/user_help.go +++ b/user_help.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/user_options.go b/user_options.go index 0ba9175..896676a 100644 --- a/user_options.go +++ b/user_options.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import ( diff --git a/user_test.go b/user_test.go index 60271d7..686fcf4 100644 --- a/user_test.go +++ b/user_test.go @@ -1,3 +1,11 @@ +// This file is part of go-getoptions. +// +// Copyright (C) 2015-2024 David Gamba Rios +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + package getoptions import (