From 9d956246900893629b68582cf1779c49cd096a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 19 Apr 2024 16:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B8=B8=E7=94=A8=E5=BC=80?= =?UTF-8?q?=E6=BA=90=E5=8D=8F=E8=AE=AE=E5=8F=8A=E5=8D=8F=E8=AE=AE=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- license.go | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 license.go diff --git a/license.go b/license.go new file mode 100644 index 0000000..d8f2770 --- /dev/null +++ b/license.go @@ -0,0 +1,95 @@ +// Package consts ... +// +// Description : consts ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2024-04-19 12:19 +package consts + +const ( + LicenseAfl30 = "AFL-3.0" + LicenseAgpl30 = "AGPL-3.0" + LicenseApache10 = "Apache-1.0" + LicenseApache11 = "Apache-1.1" + LicenseApache20 = "Apache-2.0" + LicenseArtistic20 = "Artistic-2.0" + LicenseBsd2Clause = "BSD-2-Clause" + LicenseBsd3Clause = "BSD-3-Clause" + LicenseBsd4Clause = "BSD-4-Clause" + LicenseBsl10 = "BSL-1.0" + LicenseCcBy40 = "CC-BY-4.0" + LicenseCcBySa40 = "CC-BY-SA-4.0" + LicenseCc010 = "CC0-1.0" + LicenseEcl20 = "ECL-2.0" + LicenseEpl10 = "EPL-1.0" + LicenseEpl20 = "EPL-2.0" + LicenseEupl11 = "EUPL-1.1" + LicenseEupl12 = "EUPL-1.2" + LicenseGpl20 = "GPL-2.0" + LicenseGpl30 = "GPL-3.0" + LicenseIsc = "ISC" + LicenseLgpl21 = "LGPL-2.1" + LicenseLgpl30 = "LGPL-3.0" + LicenseLppl13c = "LPPL-1.3c" + LicenseMit = "MIT" + LicenseMpl20 = "MPL-2.0" + LicenseMsPl = "MS-PL" + LicenseMsRl = "MS-RL" + LicenseMulanpsl10 = "MulanPSL-1.0" + LicenseMulanpubl10 = "MulanPubL-1.0" + LicenseMulanpubl20 = "MulanPubL-2.0" + LicenseNcsa = "NCSA" + LicenseOfl11 = "OFL-1.1" + LicenseOsl30 = "OSL-3.0" + LicensePostgresql = "PostgreSQL" + LicenseUpl10 = "UPL-1.0" + LicenseUnlicense = "Unlicense" + LicenseWtfpl = "WTFPL" + LicenseZlib = "Zlib" +) + +var ( + // LicenseUrlTable 洗衣链接表 + LicenseUrlTable = map[string]string{ + LicenseAfl30: "https://spdx.org/licenses/AFL-3.0", + LicenseAgpl30: "https://www.gnu.org/licenses/agpl-3.0.txt", + LicenseApache10: "https://www.apache.org/licenses/LICENSE-1.0", + LicenseApache11: "https://www.apache.org/licenses/LICENSE-1.1", + LicenseApache20: "https://www.apache.org/licenses/LICENSE-2.0.txt", + LicenseArtistic20: "https://spdx.org/licenses/Artistic-2.0", + LicenseBsd2Clause: "https://opensource.org/license/BSD-2-Clause", + LicenseBsd3Clause: "https://opensource.org/license/BSD-3-Clause", + LicenseBsd4Clause: "https://directory.fsf.org/wiki/License:BSD-4-Clause", + LicenseBsl10: "https://www.boost.org/LICENSE_1_0.txt", + LicenseCcBy40: "https://creativecommons.org/licenses/by/4.0/legalcode.txt", + LicenseCcBySa40: "https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt", + LicenseCc010: "https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt", + LicenseEcl20: "https://opensource.org/license/ecl-2-0", + LicenseEpl10: "https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt", + LicenseEpl20: "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt", + LicenseEupl11: "https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/eupl1.1.-licence-en_0.pdf", + LicenseEupl12: "https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/eupl_v1.2_en.pdf", + LicenseGpl20: "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC1", + LicenseGpl30: "https://www.gnu.org/licenses/gpl-3.0.html#license-text", + LicenseIsc: "https://spdx.org/licenses/ISC", + LicenseLgpl21: "https://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + LicenseLgpl30: "https://www.gnu.org/licenses/lgpl-3.0-standalone.html", + LicenseLppl13c: "https://www.latex-project.org/lppl/lppl-1-3c.txt", + LicenseMit: "https://spdx.org/licenses/MIT", + LicenseMpl20: "https://www.mozilla.org/en-US/MPL/2.0/", + LicenseMsPl: "https://opensource.org/license/ms-pl-html", + LicenseMsRl: "https://opensource.org/license/ms-rl-html", + LicenseMulanpsl10: "http://license.coscl.org.cn/MulanPSL", + LicenseMulanpubl10: "http://license.coscl.org.cn/MulanPubL-1.0", + LicenseMulanpubl20: "http://license.coscl.org.cn/MulanPubL-2.0", + LicenseNcsa: "https://spdx.org/licenses/NCSA", + LicenseOfl11: "https://openfontlicense.org/documents/OFL.txt", + LicenseOsl30: "https://opensource.org/license/osl-3-0-php", + LicensePostgresql: "https://www.postgresql.org/about/licence/", + LicenseUpl10: "https://spdx.org/licenses/UPL-1.0", + LicenseUnlicense: "https://unlicense.org/", + LicenseWtfpl: "https://spdx.org/licenses/WTFPL", + LicenseZlib: "https://www.zlib.net/zlib_license.html", + } +)