diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-15 17:14:54 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-15 17:26:33 +0700 |
| commit | 7db8c302e1396eda40cd6a1e57f58ed791448556 (patch) | |
| tree | 89231c859d728deff0582d276f1b809243b6b2f2 /lib/strings | |
| parent | b1f8d27c7e22eb5624c56e890e51f0a34c7b9606 (diff) | |
| download | pakakeh.go-7db8c302e1396eda40cd6a1e57f58ed791448556.tar.xz | |
all: convert license and copyright to use SPDX identifiers
With help of spdxconv tool [1], we able to bulk update all files license
and copyright format to comply with SPDX formats.
[1] https://kilabit.info/project/spdxconv/
Diffstat (limited to 'lib/strings')
| -rw-r--r-- | lib/strings/parser.go | 5 | ||||
| -rw-r--r-- | lib/strings/parser_benchmark_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/parser_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/row_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/row_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/statistic.go | 5 | ||||
| -rw-r--r-- | lib/strings/statistic_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/statistic_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/string.go | 5 | ||||
| -rw-r--r-- | lib/strings/string_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/string_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/strings_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/strings_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/table_example_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/table_test.go | 5 | ||||
| -rw-r--r-- | lib/strings/testdata/clean_uri_test.txt | 3 | ||||
| -rw-r--r-- | lib/strings/testdata/clean_wiki_markup_test.txt | 3 | ||||
| -rw-r--r-- | lib/strings/testdata/split_test.txt | 3 | ||||
| -rw-r--r-- | lib/strings/wikimarkup.go | 5 |
19 files changed, 41 insertions, 48 deletions
diff --git a/lib/strings/parser.go b/lib/strings/parser.go index 6813a45f..5d6fc6b5 100644 --- a/lib/strings/parser.go +++ b/lib/strings/parser.go @@ -1,6 +1,5 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/parser_benchmark_test.go b/lib/strings/parser_benchmark_test.go index a41c2128..8ecc5dbd 100644 --- a/lib/strings/parser_benchmark_test.go +++ b/lib/strings/parser_benchmark_test.go @@ -1,6 +1,5 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/parser_example_test.go b/lib/strings/parser_example_test.go index 726609cb..71491811 100644 --- a/lib/strings/parser_example_test.go +++ b/lib/strings/parser_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/row_example_test.go b/lib/strings/row_example_test.go index 0b4acfc0..1c05b39d 100644 --- a/lib/strings/row_example_test.go +++ b/lib/strings/row_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/row_test.go b/lib/strings/row_test.go index bcc48892..5d302a3d 100644 --- a/lib/strings/row_test.go +++ b/lib/strings/row_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/statistic.go b/lib/strings/statistic.go index 0a77c6ad..5be97bc1 100644 --- a/lib/strings/statistic.go +++ b/lib/strings/statistic.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/statistic_example_test.go b/lib/strings/statistic_example_test.go index be989d64..4c8ea2e0 100644 --- a/lib/strings/statistic_example_test.go +++ b/lib/strings/statistic_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/statistic_test.go b/lib/strings/statistic_test.go index ff70a034..c5d539c2 100644 --- a/lib/strings/statistic_test.go +++ b/lib/strings/statistic_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/string.go b/lib/strings/string.go index 46464257..ac959a39 100644 --- a/lib/strings/string.go +++ b/lib/strings/string.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/string_example_test.go b/lib/strings/string_example_test.go index f83be421..119832c8 100644 --- a/lib/strings/string_example_test.go +++ b/lib/strings/string_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/string_test.go b/lib/strings/string_test.go index 1470cd18..ae1424ff 100644 --- a/lib/strings/string_test.go +++ b/lib/strings/string_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/strings_example_test.go b/lib/strings/strings_example_test.go index c69e52c5..c0324cda 100644 --- a/lib/strings/strings_example_test.go +++ b/lib/strings/strings_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/strings_test.go b/lib/strings/strings_test.go index 7a005187..e53835b6 100644 --- a/lib/strings/strings_test.go +++ b/lib/strings/strings_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/table_example_test.go b/lib/strings/table_example_test.go index 57160171..e6a6cba8 100644 --- a/lib/strings/table_example_test.go +++ b/lib/strings/table_example_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/table_test.go b/lib/strings/table_test.go index 774ac2d6..bf8a3b01 100644 --- a/lib/strings/table_test.go +++ b/lib/strings/table_test.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings diff --git a/lib/strings/testdata/clean_uri_test.txt b/lib/strings/testdata/clean_uri_test.txt index fd85d251..f4197da4 100644 --- a/lib/strings/testdata/clean_uri_test.txt +++ b/lib/strings/testdata/clean_uri_test.txt @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info> + This test remove any URL from the strings. >>> diff --git a/lib/strings/testdata/clean_wiki_markup_test.txt b/lib/strings/testdata/clean_wiki_markup_test.txt index 852d52e4..0fa432c7 100644 --- a/lib/strings/testdata/clean_wiki_markup_test.txt +++ b/lib/strings/testdata/clean_wiki_markup_test.txt @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info> + >>> ==External links== *[http://www.bigfinish.com/24-Doctor-Who-The-Eye-of-the-Scorpion Big Finish Productions - ''The Eye of the Scorpion''] diff --git a/lib/strings/testdata/split_test.txt b/lib/strings/testdata/split_test.txt index 630738be..9ff96327 100644 --- a/lib/strings/testdata/split_test.txt +++ b/lib/strings/testdata/split_test.txt @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info> + Test Split with clean and unique parameters. >>> Single-line diff --git a/lib/strings/wikimarkup.go b/lib/strings/wikimarkup.go index f7cc4be0..8ad35ce3 100644 --- a/lib/strings/wikimarkup.go +++ b/lib/strings/wikimarkup.go @@ -1,6 +1,5 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info> package strings |
