├── .travis.yml ├── LICENSE ├── README.md ├── assets ├── afl_3.0.txt ├── afl_3.0.txt.gen.go ├── agpl_3.0.txt ├── agpl_3.0.txt.gen.go ├── apache_2.0.txt ├── apache_2.0.txt.gen.go ├── artistic_2.0.txt ├── artistic_2.0.txt.gen.go ├── asset.go ├── asset_dev.gen.go ├── asset_nodev.gen.go ├── assets.go ├── bsd_2_clause.txt ├── bsd_2_clause.txt.gen.go ├── bsd_3_clause.txt ├── bsd_3_clause.txt.gen.go ├── bsd_3_clause_clear.txt ├── bsd_3_clause_clear.txt.gen.go ├── cc0_1.0.txt ├── cc0_1.0.txt.gen.go ├── epl_1.0.txt ├── epl_1.0.txt.gen.go ├── gpl_2.0.txt ├── gpl_2.0.txt.gen.go ├── gpl_3.0.txt ├── gpl_3.0.txt.gen.go ├── isc.txt ├── isc.txt.gen.go ├── lgpl_2.1.txt ├── lgpl_2.1.txt.gen.go ├── lgpl_3.0.txt ├── lgpl_3.0.txt.gen.go ├── mit.txt ├── mit.txt.gen.go ├── mpl_2.0.txt ├── mpl_2.0.txt.gen.go ├── ms_pl.txt ├── ms_pl.txt.gen.go ├── ms_rl.txt ├── ms_rl.txt.gen.go ├── no_license.txt ├── no_license.txt.gen.go ├── ofl_1.1.txt ├── ofl_1.1.txt.gen.go ├── osl_3.0.txt ├── osl_3.0.txt.gen.go ├── unlicense.txt ├── unlicense.txt.gen.go ├── wtfpl.txt └── wtfpl.txt.gen.go ├── licenses.go ├── licenses_test.go └── testdata └── src ├── colors ├── blue │ ├── COPYING │ ├── LICENSE │ └── blue.go ├── broken │ ├── LICENSE │ └── broken.go ├── cmd │ ├── LICENSE.md │ ├── mix │ │ └── mix.go │ └── paint │ │ └── paint.go ├── green │ └── green.go ├── purple │ └── purple.go ├── red │ ├── LICENSE │ └── red.go └── yellow │ ├── COPYRIGHT │ └── yellow.go └── couleurs └── red ├── LICENCE.txt └── red.go /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.5 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Patrick Mézard 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/pmezard/licenses.png?branch=master)](https://travis-ci.org/pmezard/licenses) 2 | 3 | # What is it? 4 | 5 | `licenses` uses `go list` tool over a Go workspace to collect the dependencies 6 | of a package or command, detect their license if any and match them against 7 | well-known templates. 8 | 9 | ``` 10 | $ licenses github.com/blevesearch/bleve 11 | github.com/blevesearch/bleve Apache License 2.0 12 | github.com/blevesearch/go-porterstemmer MIT License (93%) 13 | github.com/blevesearch/segment Apache License 2.0 14 | github.com/boltdb/bolt MIT License (97%) 15 | github.com/golang/protobuf/proto BSD 3-clause "New" or "Revised" License (91%) 16 | github.com/steveyen/gtreap MIT License (96%) 17 | vendor/golang.org/x/net/http2/hpack ? 18 | ``` 19 | 20 | Unmatched license words can be displayed with: 21 | ``` 22 | $ licenses -w github.com/steveyen/gtreap 23 | github.com/steveyen/gtreap MIT License (98%) 24 | -words: mit, license 25 | ``` 26 | 27 | # Where does it come from? 28 | 29 | Both the code and reference data were directly ported from: 30 | 31 | [https://github.com/benbalter/licensee](https://github.com/benbalter/licensee) 32 | -------------------------------------------------------------------------------- /assets/afl_3.0.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Academic Free License v3.0 3 | source: http://opensource.org/licenses/afl-3.0 4 | 5 | description: The Academic Free License is a variant of the Open Source License that does not require that the source code of derivative works be disclosed. It contains explicit copyright and patent grants and reserves trademark rights in the author. 6 | 7 | hidden: true 8 | 9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Academic Free License version 3.0" adjacent to the copyright notice. 10 | 11 | required: 12 | - include-copyright 13 | 14 | permitted: 15 | - commercial-use 16 | - modifications 17 | - distribution 18 | - sublicense 19 | - private-use 20 | - patent-grant 21 | 22 | forbidden: 23 | - trademark-use 24 | - no-liability 25 | 26 | --- 27 | Academic Free License (“AFL”) v. 3.0 28 | 29 | This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: 30 | 31 | Licensed under the Academic Free License version 3.0 32 | 33 | 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: 34 | 35 | a) to reproduce the Original Work in copies, either alone or as part of a collective work; 36 | b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; 37 | c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor’s reserved rights and remedies, in this Academic Free License; 38 | d) to perform the Original Work publicly; and 39 | e) to display the Original Work publicly. 40 | 41 | 2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 42 | 43 | 3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 44 | 45 | 4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor’s trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 46 | 47 | 5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 48 | 49 | 6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 50 | 51 | 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 52 | 53 | 8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 54 | 55 | 9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including “fair use” or “fair dealing”). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 56 | 57 | 10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 58 | 59 | 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 60 | 61 | 12) Attorneys’ Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 62 | 63 | 13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 64 | 65 | 14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 66 | 67 | 15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 68 | 69 | 16) Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. 70 | -------------------------------------------------------------------------------- /assets/afl_3.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var afl_3 = txt(asset{Name: "afl_3.0.txt", Content: "" + 6 | "---\ntitle: Academic Free License v3.0\nsource: http://opensource.org/licenses/afl-3.0\n\ndescription: The Academic Free License is a variant of the Open Source License that does not require that the source code of derivative works be disclosed. It contains explicit copyright and patent grants and reserves trademark rights in the author.\n\nhidden: true\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice \"Licensed under the Academic Free License version 3.0\" adjacent to the copyright notice.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n - patent-grant\n\nforbidden:\n - trademark-use\n - no-liability\n\n---\nAcademic Free License (\u201cAFL\u201d) v. 3.0\n\nThis Academic Free License (the \"License\") applies to any original work of authorship (the \"Original Work\") whose owner (the \"Licensor\") has placed the following licensing notice adjacent to the copyright notice for the Original Work:\n\nLicensed under the Academic Free License version 3.0\n\n1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:\n\n a) to reproduce the Original Work in copies, either alone or as part of a collective work;\n b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works (\"Derivative Works\") based upon the Original Work;\n c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor\u2019s reserved rights and remedies, in this Academic Free License;\n d) to perform the Original Work publicly; and\n e) to display the Original Work publicly.\n\n2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.\n\n3) Grant of Source Code License. The term \"Source Code\" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.\n\n4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor\u2019s trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.\n\n5) External Deployment. The term \"External Deployment\" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).\n\n6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an \"Attribution Notice.\" You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.\n\n7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an \"AS IS\" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.\n\n8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.\n\n9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including \u201cfair use\u201d or \u201cfair dealing\u201d). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).\n\n10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.\n\n11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.\n\n12) Attorneys\u2019 Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.\n\n13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.\n\n14) Definition of \"You\" in This License. \"You\" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, \"You\" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.\n\n16) Modification of This License. This License is Copyright \u00a9 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the \"Modified License\") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the \"Academic Free License\" or \"AFL\" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice \"Licensed under \" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.\n" + 7 | "", etag: `"Q/hgO5Q1wo8="`}) 8 | -------------------------------------------------------------------------------- /assets/apache_2.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var apache_2 = txt(asset{Name: "apache_2.0.txt", Content: "" + 6 | "---\ntitle: Apache License 2.0\nnickname: Apache\nredirect_from: /licenses/apache/\nfeatured: true\nsource: http://www.apache.org/licenses/LICENSE-2.0.html\n\ndescription: A permissive license that also provides an express grant of patent rights from contributors to users.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.\n\nnote: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.\n\nrequired:\n - include-copyright\n - document-changes\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - patent-grant\n - private-use\n\nforbidden:\n - trademark-use\n - no-liability\n\n---\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n" + 7 | "", etag: `"EMrDIX6/15E="`}) 8 | -------------------------------------------------------------------------------- /assets/artistic_2.0.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Artistic License 2.0 3 | redirect_from: /licenses/artistic/ 4 | source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt 5 | 6 | description: Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version. 7 | 8 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. 9 | 10 | required: 11 | - include-copyright 12 | - document-changes 13 | 14 | permitted: 15 | - commercial-use 16 | - modifications 17 | - distribution 18 | - sublicense 19 | - private-use 20 | 21 | forbidden: 22 | - no-liability 23 | - trademark-use 24 | 25 | --- 26 | 27 | The Artistic License 2.0 28 | 29 | Copyright (c) [year] [fullname] 30 | 31 | Everyone is permitted to copy and distribute verbatim copies 32 | of this license document, but changing it is not allowed. 33 | 34 | Preamble 35 | 36 | This license establishes the terms under which a given free software 37 | Package may be copied, modified, distributed, and/or redistributed. 38 | The intent is that the Copyright Holder maintains some artistic 39 | control over the development of that Package while still keeping the 40 | Package available as open source and free software. 41 | 42 | You are always permitted to make arrangements wholly outside of this 43 | license directly with the Copyright Holder of a given Package. If the 44 | terms of this license do not permit the full use that you propose to 45 | make of the Package, you should contact the Copyright Holder and seek 46 | a different licensing arrangement. 47 | 48 | Definitions 49 | 50 | "Copyright Holder" means the individual(s) or organization(s) 51 | named in the copyright notice for the entire Package. 52 | 53 | "Contributor" means any party that has contributed code or other 54 | material to the Package, in accordance with the Copyright Holder's 55 | procedures. 56 | 57 | "You" and "your" means any person who would like to copy, 58 | distribute, or modify the Package. 59 | 60 | "Package" means the collection of files distributed by the 61 | Copyright Holder, and derivatives of that collection and/or of 62 | those files. A given Package may consist of either the Standard 63 | Version, or a Modified Version. 64 | 65 | "Distribute" means providing a copy of the Package or making it 66 | accessible to anyone else, or in the case of a company or 67 | organization, to others outside of your company or organization. 68 | 69 | "Distributor Fee" means any fee that you charge for Distributing 70 | this Package or providing support for this Package to another 71 | party. It does not mean licensing fees. 72 | 73 | "Standard Version" refers to the Package if it has not been 74 | modified, or has been modified only in ways explicitly requested 75 | by the Copyright Holder. 76 | 77 | "Modified Version" means the Package, if it has been changed, and 78 | such changes were not explicitly requested by the Copyright 79 | Holder. 80 | 81 | "Original License" means this Artistic License as Distributed with 82 | the Standard Version of the Package, in its current version or as 83 | it may be modified by The Perl Foundation in the future. 84 | 85 | "Source" form means the source code, documentation source, and 86 | configuration files for the Package. 87 | 88 | "Compiled" form means the compiled bytecode, object code, binary, 89 | or any other form resulting from mechanical transformation or 90 | translation of the Source form. 91 | 92 | 93 | Permission for Use and Modification Without Distribution 94 | 95 | (1) You are permitted to use the Standard Version and create and use 96 | Modified Versions for any purpose without restriction, provided that 97 | you do not Distribute the Modified Version. 98 | 99 | 100 | Permissions for Redistribution of the Standard Version 101 | 102 | (2) You may Distribute verbatim copies of the Source form of the 103 | Standard Version of this Package in any medium without restriction, 104 | either gratis or for a Distributor Fee, provided that you duplicate 105 | all of the original copyright notices and associated disclaimers. At 106 | your discretion, such verbatim copies may or may not include a 107 | Compiled form of the Package. 108 | 109 | (3) You may apply any bug fixes, portability changes, and other 110 | modifications made available from the Copyright Holder. The resulting 111 | Package will still be considered the Standard Version, and as such 112 | will be subject to the Original License. 113 | 114 | 115 | Distribution of Modified Versions of the Package as Source 116 | 117 | (4) You may Distribute your Modified Version as Source (either gratis 118 | or for a Distributor Fee, and with or without a Compiled form of the 119 | Modified Version) provided that you clearly document how it differs 120 | from the Standard Version, including, but not limited to, documenting 121 | any non-standard features, executables, or modules, and provided that 122 | you do at least ONE of the following: 123 | 124 | (a) make the Modified Version available to the Copyright Holder 125 | of the Standard Version, under the Original License, so that the 126 | Copyright Holder may include your modifications in the Standard 127 | Version. 128 | 129 | (b) ensure that installation of your Modified Version does not 130 | prevent the user installing or running the Standard Version. In 131 | addition, the Modified Version must bear a name that is different 132 | from the name of the Standard Version. 133 | 134 | (c) allow anyone who receives a copy of the Modified Version to 135 | make the Source form of the Modified Version available to others 136 | under 137 | 138 | (i) the Original License or 139 | 140 | (ii) a license that permits the licensee to freely copy, 141 | modify and redistribute the Modified Version using the same 142 | licensing terms that apply to the copy that the licensee 143 | received, and requires that the Source form of the Modified 144 | Version, and of any works derived from it, be made freely 145 | available in that license fees are prohibited but Distributor 146 | Fees are allowed. 147 | 148 | 149 | Distribution of Compiled Forms of the Standard Version 150 | or Modified Versions without the Source 151 | 152 | (5) You may Distribute Compiled forms of the Standard Version without 153 | the Source, provided that you include complete instructions on how to 154 | get the Source of the Standard Version. Such instructions must be 155 | valid at the time of your distribution. If these instructions, at any 156 | time while you are carrying out such distribution, become invalid, you 157 | must provide new instructions on demand or cease further distribution. 158 | If you provide valid instructions or cease distribution within thirty 159 | days after you become aware that the instructions are invalid, then 160 | you do not forfeit any of your rights under this license. 161 | 162 | (6) You may Distribute a Modified Version in Compiled form without 163 | the Source, provided that you comply with Section 4 with respect to 164 | the Source of the Modified Version. 165 | 166 | 167 | Aggregating or Linking the Package 168 | 169 | (7) You may aggregate the Package (either the Standard Version or 170 | Modified Version) with other packages and Distribute the resulting 171 | aggregation provided that you do not charge a licensing fee for the 172 | Package. Distributor Fees are permitted, and licensing fees for other 173 | components in the aggregation are permitted. The terms of this license 174 | apply to the use and Distribution of the Standard or Modified Versions 175 | as included in the aggregation. 176 | 177 | (8) You are permitted to link Modified and Standard Versions with 178 | other works, to embed the Package in a larger work of your own, or to 179 | build stand-alone binary or bytecode versions of applications that 180 | include the Package, and Distribute the result without restriction, 181 | provided the result does not expose a direct interface to the Package. 182 | 183 | 184 | Items That are Not Considered Part of a Modified Version 185 | 186 | (9) Works (including, but not limited to, modules and scripts) that 187 | merely extend or make use of the Package, do not, by themselves, cause 188 | the Package to be a Modified Version. In addition, such works are not 189 | considered parts of the Package itself, and are not subject to the 190 | terms of this license. 191 | 192 | 193 | General Provisions 194 | 195 | (10) Any use, modification, and distribution of the Standard or 196 | Modified Versions is governed by this Artistic License. By using, 197 | modifying or distributing the Package, you accept this license. Do not 198 | use, modify, or distribute the Package, if you do not accept this 199 | license. 200 | 201 | (11) If your Modified Version has been derived from a Modified 202 | Version made by someone other than you, you are nevertheless required 203 | to ensure that your Modified Version complies with the requirements of 204 | this license. 205 | 206 | (12) This license does not grant you the right to use any trademark, 207 | service mark, tradename, or logo of the Copyright Holder. 208 | 209 | (13) This license includes the non-exclusive, worldwide, 210 | free-of-charge patent license to make, have made, use, offer to sell, 211 | sell, import and otherwise transfer the Package with respect to any 212 | patent claims licensable by the Copyright Holder that are necessarily 213 | infringed by the Package. If you institute patent litigation 214 | (including a cross-claim or counterclaim) against any party alleging 215 | that the Package constitutes direct or contributory patent 216 | infringement, then this Artistic License to you shall terminate on the 217 | date that such litigation is filed. 218 | 219 | (14) Disclaimer of Warranty: 220 | THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS 221 | IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED 222 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 223 | NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL 224 | LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL 225 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 226 | DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF 227 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 228 | -------------------------------------------------------------------------------- /assets/artistic_2.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var artistic_2 = txt(asset{Name: "artistic_2.0.txt", Content: "" + 6 | "---\ntitle: Artistic License 2.0\nredirect_from: /licenses/artistic/\nsource: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt\n\ndescription: Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.\n\nrequired:\n - include-copyright\n - document-changes\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden:\n - no-liability\n - trademark-use\n\n---\n\n The Artistic License 2.0\n\n Copyright (c) [year] [fullname]\n\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\nPreamble\n\nThis license establishes the terms under which a given free software\nPackage may be copied, modified, distributed, and/or redistributed.\nThe intent is that the Copyright Holder maintains some artistic\ncontrol over the development of that Package while still keeping the\nPackage available as open source and free software.\n\nYou are always permitted to make arrangements wholly outside of this\nlicense directly with the Copyright Holder of a given Package. If the\nterms of this license do not permit the full use that you propose to\nmake of the Package, you should contact the Copyright Holder and seek\na different licensing arrangement.\n\nDefinitions\n\n \"Copyright Holder\" means the individual(s) or organization(s)\n named in the copyright notice for the entire Package.\n\n \"Contributor\" means any party that has contributed code or other\n material to the Package, in accordance with the Copyright Holder's\n procedures.\n\n \"You\" and \"your\" means any person who would like to copy,\n distribute, or modify the Package.\n\n \"Package\" means the collection of files distributed by the\n Copyright Holder, and derivatives of that collection and/or of\n those files. A given Package may consist of either the Standard\n Version, or a Modified Version.\n\n \"Distribute\" means providing a copy of the Package or making it\n accessible to anyone else, or in the case of a company or\n organization, to others outside of your company or organization.\n\n \"Distributor Fee\" means any fee that you charge for Distributing\n this Package or providing support for this Package to another\n party. It does not mean licensing fees.\n\n \"Standard Version\" refers to the Package if it has not been\n modified, or has been modified only in ways explicitly requested\n by the Copyright Holder.\n\n \"Modified Version\" means the Package, if it has been changed, and\n such changes were not explicitly requested by the Copyright\n Holder.\n\n \"Original License\" means this Artistic License as Distributed with\n the Standard Version of the Package, in its current version or as\n it may be modified by The Perl Foundation in the future.\n\n \"Source\" form means the source code, documentation source, and\n configuration files for the Package.\n\n \"Compiled\" form means the compiled bytecode, object code, binary,\n or any other form resulting from mechanical transformation or\n translation of the Source form.\n\n\nPermission for Use and Modification Without Distribution\n\n(1) You are permitted to use the Standard Version and create and use\nModified Versions for any purpose without restriction, provided that\nyou do not Distribute the Modified Version.\n\n\nPermissions for Redistribution of the Standard Version\n\n(2) You may Distribute verbatim copies of the Source form of the\nStandard Version of this Package in any medium without restriction,\neither gratis or for a Distributor Fee, provided that you duplicate\nall of the original copyright notices and associated disclaimers. At\nyour discretion, such verbatim copies may or may not include a\nCompiled form of the Package.\n\n(3) You may apply any bug fixes, portability changes, and other\nmodifications made available from the Copyright Holder. The resulting\nPackage will still be considered the Standard Version, and as such\nwill be subject to the Original License.\n\n\nDistribution of Modified Versions of the Package as Source\n\n(4) You may Distribute your Modified Version as Source (either gratis\nor for a Distributor Fee, and with or without a Compiled form of the\nModified Version) provided that you clearly document how it differs\nfrom the Standard Version, including, but not limited to, documenting\nany non-standard features, executables, or modules, and provided that\nyou do at least ONE of the following:\n\n (a) make the Modified Version available to the Copyright Holder\n of the Standard Version, under the Original License, so that the\n Copyright Holder may include your modifications in the Standard\n Version.\n\n (b) ensure that installation of your Modified Version does not\n prevent the user installing or running the Standard Version. In\n addition, the Modified Version must bear a name that is different\n from the name of the Standard Version.\n\n (c) allow anyone who receives a copy of the Modified Version to\n make the Source form of the Modified Version available to others\n under\n\n (i) the Original License or\n\n (ii) a license that permits the licensee to freely copy,\n modify and redistribute the Modified Version using the same\n licensing terms that apply to the copy that the licensee\n received, and requires that the Source form of the Modified\n Version, and of any works derived from it, be made freely\n available in that license fees are prohibited but Distributor\n Fees are allowed.\n\n\nDistribution of Compiled Forms of the Standard Version\nor Modified Versions without the Source\n\n(5) You may Distribute Compiled forms of the Standard Version without\nthe Source, provided that you include complete instructions on how to\nget the Source of the Standard Version. Such instructions must be\nvalid at the time of your distribution. If these instructions, at any\ntime while you are carrying out such distribution, become invalid, you\nmust provide new instructions on demand or cease further distribution.\nIf you provide valid instructions or cease distribution within thirty\ndays after you become aware that the instructions are invalid, then\nyou do not forfeit any of your rights under this license.\n\n(6) You may Distribute a Modified Version in Compiled form without\nthe Source, provided that you comply with Section 4 with respect to\nthe Source of the Modified Version.\n\n\nAggregating or Linking the Package\n\n(7) You may aggregate the Package (either the Standard Version or\nModified Version) with other packages and Distribute the resulting\naggregation provided that you do not charge a licensing fee for the\nPackage. Distributor Fees are permitted, and licensing fees for other\ncomponents in the aggregation are permitted. The terms of this license\napply to the use and Distribution of the Standard or Modified Versions\nas included in the aggregation.\n\n(8) You are permitted to link Modified and Standard Versions with\nother works, to embed the Package in a larger work of your own, or to\nbuild stand-alone binary or bytecode versions of applications that\ninclude the Package, and Distribute the result without restriction,\nprovided the result does not expose a direct interface to the Package.\n\n\nItems That are Not Considered Part of a Modified Version\n\n(9) Works (including, but not limited to, modules and scripts) that\nmerely extend or make use of the Package, do not, by themselves, cause\nthe Package to be a Modified Version. In addition, such works are not\nconsidered parts of the Package itself, and are not subject to the\nterms of this license.\n\n\nGeneral Provisions\n\n(10) Any use, modification, and distribution of the Standard or\nModified Versions is governed by this Artistic License. By using,\nmodifying or distributing the Package, you accept this license. Do not\nuse, modify, or distribute the Package, if you do not accept this\nlicense.\n\n(11) If your Modified Version has been derived from a Modified\nVersion made by someone other than you, you are nevertheless required\nto ensure that your Modified Version complies with the requirements of\nthis license.\n\n(12) This license does not grant you the right to use any trademark,\nservice mark, tradename, or logo of the Copyright Holder.\n\n(13) This license includes the non-exclusive, worldwide,\nfree-of-charge patent license to make, have made, use, offer to sell,\nsell, import and otherwise transfer the Package with respect to any\npatent claims licensable by the Copyright Holder that are necessarily\ninfringed by the Package. If you institute patent litigation\n(including a cross-claim or counterclaim) against any party alleging\nthat the Package constitutes direct or contributory patent\ninfringement, then this Artistic License to you shall terminate on the\ndate that such litigation is filed.\n\n(14) Disclaimer of Warranty:\nTHE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS \"AS\nIS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR\nNON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL\nLAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" + 7 | "", etag: `"PIOXjlLCxeM="`}) 8 | -------------------------------------------------------------------------------- /assets/asset.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | import ( 6 | "bufio" 7 | "encoding/base64" 8 | "flag" 9 | "fmt" 10 | "go/build" 11 | "hash/fnv" 12 | "io" 13 | "io/ioutil" 14 | "log" 15 | "net/http" 16 | "os" 17 | "path/filepath" 18 | "strconv" 19 | "strings" 20 | "text/template" 21 | "time" 22 | ) 23 | 24 | var assetDev = asset(asset{Name: "asset_dev.go", Content: "" + 25 | "// +build dev\n\npackage main\n\nimport (\n\t\"go/build\"\n\t\"net/http\"\n\t\"os\"\n\t\"path/filepath\"\n\t\"time\"\n)\n\ntype asset struct {\n\tName string\n\tContent string\n\tetag string\n}\n\nfunc (a asset) init() asset {\n\treturn a\n}\n\nfunc (a asset) importPath() string {\n\t// filled at code gen time\n\treturn \"{{.ImportPath}}\"\n}\n\nfunc (a asset) Open() (*os.File, error) {\n\tpath := a.importPath()\n\tpkg, err := build.Import(path, \".\", build.FindOnly)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tp := filepath.Join(pkg.Dir, a.Name)\n\treturn os.Open(p)\n}\n\nfunc (a asset) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tbody, err := a.Open()\n\tif err != nil {\n\t\t// show the os.Open message, with paths and all, but this only\n\t\t// happens in dev mode.\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\tdefer body.Close()\n\thttp.ServeContent(w, req, a.Name, time.Time{}, body)\n}\n" + 26 | "", etag: `"Z+My+Q7Ctfk="`}) 27 | 28 | type asset struct { 29 | Name string 30 | Content string 31 | etag string 32 | } 33 | 34 | func (a asset) ServeHTTP(w http.ResponseWriter, req *http.Request) { 35 | if a.etag != "" && w.Header().Get("ETag") == "" { 36 | w.Header().Set("ETag", a.etag) 37 | } 38 | body := strings.NewReader(a.Content) 39 | http.ServeContent(w, req, a.Name, time.Time{}, body) 40 | } 41 | 42 | var assetNoDev = asset(asset{Name: "asset_nodev.go", Content: "" + 43 | "// +build !dev\n\npackage main\n\nimport (\n\t\"net/http\"\n\t\"strings\"\n\t\"time\"\n)\n\ntype asset struct {\n\tName string\n\tContent string\n\tetag string\n}\n\nfunc (a asset) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tif a.etag != \"\" && w.Header().Get(\"ETag\") == \"\" {\n\t\tw.Header().Set(\"ETag\", a.etag)\n\t}\n\tbody := strings.NewReader(a.Content)\n\thttp.ServeContent(w, req, a.Name, time.Time{}, body)\n}\n" + 44 | "", etag: `"pGCgphv16Ds="`}) 45 | 46 | var ( 47 | flagVar = flag.String("var", "", "variable name to use, \"_\" to ignore (default: file basename without extension)") 48 | flagWrap = flag.String("wrap", "", "wrapper function or type (default: filename extension)") 49 | flagLib = flag.Bool("lib", true, "generate asset_*.gen.go files defining the asset type") 50 | ) 51 | 52 | var prog = filepath.Base(os.Args[0]) 53 | 54 | func usage() { 55 | fmt.Fprintf(os.Stderr, "Usage:\n") 56 | fmt.Fprintf(os.Stderr, " %s [OPTS] FILE..\n", prog) 57 | fmt.Fprintf(os.Stderr, "\n") 58 | fmt.Fprintf(os.Stderr, "Creates files FILE.gen.go and asset_*.gen.go\n") 59 | fmt.Fprintf(os.Stderr, "\n") 60 | fmt.Fprintf(os.Stderr, "Options:\n") 61 | flag.PrintDefaults() 62 | } 63 | 64 | func main() { 65 | log.SetFlags(0) 66 | log.SetPrefix(prog + ": ") 67 | 68 | flag.Usage = usage 69 | flag.Parse() 70 | if flag.NArg() == 0 { 71 | flag.Usage() 72 | os.Exit(2) 73 | } 74 | 75 | if flag.NArg() > 1 && *flagVar != "" && *flagVar != "_" { 76 | log.Fatal("cannot combine -var with multiple files") 77 | } 78 | 79 | packages := map[string]*build.Package{} 80 | 81 | for _, filename := range flag.Args() { 82 | dir, base := filepath.Split(filename) 83 | if dir == "" { 84 | dir = "." 85 | } 86 | 87 | pkg, err := getPkg(packages, dir) 88 | if err != nil { 89 | log.Fatal(err) 90 | } 91 | 92 | variable := *flagVar 93 | if variable == "" { 94 | variable = strings.SplitN(base, ".", 2)[0] 95 | } 96 | 97 | wrap := *flagWrap 98 | if wrap == "" { 99 | wrap = filepath.Ext(base) 100 | if wrap == "" { 101 | log.Fatalf("files without extension need -wrap: %s", filename) 102 | } 103 | 104 | wrap = wrap[1:] 105 | } 106 | 107 | if err := process(filename, pkg.Name, variable, wrap); err != nil { 108 | log.Fatal(err) 109 | } 110 | 111 | } 112 | } 113 | 114 | // autogen writes a warning that the file has been generated automatically. 115 | func autogen(w io.Writer) error { 116 | // broken into parts here so grep won't find it 117 | const warning = "// AUTOMATICALLY " + "GENERATED FILE. DO NOT EDIT.\n\n" 118 | _, err := io.WriteString(w, warning) 119 | return err 120 | } 121 | 122 | func process(filename, pkg, variable, wrap string) error { 123 | src, err := os.Open(filename) 124 | if err != nil { 125 | return err 126 | } 127 | defer src.Close() 128 | 129 | tmp, err := ioutil.TempFile(filepath.Dir(filename), ".tmp.asset-") 130 | if err != nil { 131 | return err 132 | } 133 | defer func() { 134 | if tmp != nil { 135 | _ = os.Remove(tmp.Name()) 136 | } 137 | }() 138 | defer tmp.Close() 139 | 140 | in := bufio.NewReader(src) 141 | out := bufio.NewWriter(tmp) 142 | 143 | if err := autogen(out); err != nil { 144 | return err 145 | } 146 | if _, err := fmt.Fprintf(out, "package %s\n\n", pkg); err != nil { 147 | return err 148 | } 149 | if err := embed(variable, wrap, filepath.Base(filename), in, out); err != nil { 150 | return err 151 | } 152 | if err := out.Flush(); err != nil { 153 | return err 154 | } 155 | if err := tmp.Close(); err != nil { 156 | return err 157 | } 158 | gen := filename + ".gen.go" 159 | if err := os.Rename(tmp.Name(), gen); err != nil { 160 | return err 161 | } 162 | tmp = nil 163 | return nil 164 | } 165 | 166 | func embed(variable, wrap, filename string, in io.Reader, out io.Writer) error { 167 | h := fnv.New64a() 168 | r := io.TeeReader(in, h) 169 | _, err := fmt.Fprintf(out, "var %s = %s(asset{Name: %q, Content: \"\" +\n", 170 | variable, wrap, filename) 171 | if err != nil { 172 | return err 173 | } 174 | buf := make([]byte, 1*1024*1024) 175 | eof := false 176 | for !eof { 177 | n, err := r.Read(buf) 178 | switch err { 179 | case io.EOF: 180 | eof = true 181 | case nil: 182 | 183 | default: 184 | return err 185 | } 186 | if n == 0 { 187 | continue 188 | } 189 | s := string(buf[:n]) 190 | s = strconv.QuoteToASCII(s) 191 | s = "\t" + s + " +\n" 192 | if _, err := io.WriteString(out, s); err != nil { 193 | return err 194 | } 195 | } 196 | etag := `"` + base64.StdEncoding.EncodeToString(h.Sum(nil)) + `"` 197 | if _, err := fmt.Fprintf(out, "\t\"\", etag: %#q})\n", etag); err != nil { 198 | return err 199 | } 200 | return nil 201 | } 202 | 203 | func getPkg(packages map[string]*build.Package, dir string) (*build.Package, error) { 204 | if pkg, found := packages[dir]; found { 205 | return pkg, nil 206 | } 207 | 208 | pkg, err := loadPkg(dir) 209 | if err != nil { 210 | return nil, err 211 | } 212 | if *flagLib { 213 | if err := auxiliary(pkg.Dir, pkg.ImportPath, pkg.Name); err != nil { 214 | return nil, err 215 | } 216 | } 217 | packages[dir] = pkg 218 | return pkg, nil 219 | } 220 | 221 | func loadPkg(dir string) (*build.Package, error) { 222 | 223 | if !filepath.IsAbs(dir) { 224 | if abs, err := filepath.Abs(dir); err == nil { 225 | dir = abs 226 | } 227 | } 228 | 229 | pkg, err := build.ImportDir(dir, 0) 230 | if err != nil { 231 | return nil, err 232 | } 233 | return pkg, nil 234 | } 235 | 236 | func auxiliary(dir, imp, pkg string) error { 237 | for filename, tmpl := range map[string]string{ 238 | "asset_dev": assetDev.Content, 239 | "asset_nodev": assetNoDev.Content, 240 | } { 241 | tmpl = strings.Replace(tmpl, "\npackage main\n", "\npackage "+pkg+"\n", 1) 242 | 243 | t, err := template.New("").Parse(tmpl) 244 | if err != nil { 245 | return err 246 | } 247 | 248 | tmp, err := ioutil.TempFile(dir, ".tmp.asset-") 249 | if err != nil { 250 | return err 251 | } 252 | defer func() { 253 | if tmp != nil { 254 | _ = os.Remove(tmp.Name()) 255 | } 256 | }() 257 | defer tmp.Close() 258 | 259 | type data struct { 260 | ImportPath string 261 | } 262 | d := data{ 263 | ImportPath: imp, 264 | } 265 | if err := autogen(tmp); err != nil { 266 | return err 267 | } 268 | if err := t.Execute(tmp, d); err != nil { 269 | return err 270 | } 271 | if err := tmp.Close(); err != nil { 272 | return err 273 | } 274 | gen := filepath.Join(dir, filename+".gen.go") 275 | if err := os.Rename(tmp.Name(), gen); err != nil { 276 | return err 277 | } 278 | tmp = nil 279 | } 280 | return nil 281 | } 282 | -------------------------------------------------------------------------------- /assets/asset_dev.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | // +build dev 4 | 5 | package assets 6 | 7 | import ( 8 | "go/build" 9 | "net/http" 10 | "os" 11 | "path/filepath" 12 | "time" 13 | ) 14 | 15 | type asset struct { 16 | Name string 17 | Content string 18 | etag string 19 | } 20 | 21 | func (a asset) init() asset { 22 | return a 23 | } 24 | 25 | func (a asset) importPath() string { 26 | // filled at code gen time 27 | return "github.com/pmezard/licenses/assets" 28 | } 29 | 30 | func (a asset) Open() (*os.File, error) { 31 | path := a.importPath() 32 | pkg, err := build.Import(path, ".", build.FindOnly) 33 | if err != nil { 34 | return nil, err 35 | } 36 | p := filepath.Join(pkg.Dir, a.Name) 37 | return os.Open(p) 38 | } 39 | 40 | func (a asset) ServeHTTP(w http.ResponseWriter, req *http.Request) { 41 | body, err := a.Open() 42 | if err != nil { 43 | // show the os.Open message, with paths and all, but this only 44 | // happens in dev mode. 45 | http.Error(w, err.Error(), http.StatusInternalServerError) 46 | return 47 | } 48 | defer body.Close() 49 | http.ServeContent(w, req, a.Name, time.Time{}, body) 50 | } 51 | -------------------------------------------------------------------------------- /assets/asset_nodev.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | // +build !dev 4 | 5 | package assets 6 | 7 | import ( 8 | "net/http" 9 | "strings" 10 | "time" 11 | ) 12 | 13 | type asset struct { 14 | Name string 15 | Content string 16 | etag string 17 | } 18 | 19 | func (a asset) ServeHTTP(w http.ResponseWriter, req *http.Request) { 20 | if a.etag != "" && w.Header().Get("ETag") == "" { 21 | w.Header().Set("ETag", a.etag) 22 | } 23 | body := strings.NewReader(a.Content) 24 | http.ServeContent(w, req, a.Name, time.Time{}, body) 25 | } 26 | -------------------------------------------------------------------------------- /assets/assets.go: -------------------------------------------------------------------------------- 1 | //go:generate -command asset go run asset.go 2 | //go:generate asset afl_3.0.txt 3 | //go:generate asset agpl_3.0.txt 4 | //go:generate asset apache_2.0.txt 5 | //go:generate asset artistic_2.0.txt 6 | //go:generate asset bsd_2_clause.txt 7 | //go:generate asset bsd_3_clause_clear.txt 8 | //go:generate asset bsd_3_clause.txt 9 | //go:generate asset cc0_1.0.txt 10 | //go:generate asset epl_1.0.txt 11 | //go:generate asset gpl_2.0.txt 12 | //go:generate asset gpl_3.0.txt 13 | //go:generate asset isc.txt 14 | //go:generate asset lgpl_2.1.txt 15 | //go:generate asset lgpl_3.0.txt 16 | //go:generate asset mit.txt 17 | //go:generate asset mpl_2.0.txt 18 | //go:generate asset ms_pl.txt 19 | //go:generate asset ms_rl.txt 20 | //go:generate asset no_license.txt 21 | //go:generate asset ofl_1.1.txt 22 | //go:generate asset osl_3.0.txt 23 | //go:generate asset unlicense.txt 24 | //go:generate asset wtfpl.txt 25 | 26 | package assets 27 | 28 | var ( 29 | Assets = []asset{} 30 | ) 31 | 32 | func txt(a asset) asset { 33 | Assets = append(Assets, a) 34 | return a 35 | } 36 | -------------------------------------------------------------------------------- /assets/bsd_2_clause.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: BSD 2-clause "Simplified" License 3 | nickname: Simplified BSD 4 | tab-slug: bsd 5 | redirect_from: /licenses/bsd/ 6 | category: BSD 7 | variant: true 8 | source: http://opensource.org/licenses/BSD-2-Clause 9 | 10 | description: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. 11 | 12 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. 13 | 14 | required: 15 | - include-copyright 16 | 17 | permitted: 18 | - commercial-use 19 | - modifications 20 | - distribution 21 | - sublicense 22 | - private-use 23 | 24 | forbidden: 25 | - no-liability 26 | 27 | --- 28 | 29 | Copyright (c) [year], [fullname] 30 | All rights reserved. 31 | 32 | Redistribution and use in source and binary forms, with or without 33 | modification, are permitted provided that the following conditions are met: 34 | 35 | * Redistributions of source code must retain the above copyright notice, this 36 | list of conditions and the following disclaimer. 37 | 38 | * Redistributions in binary form must reproduce the above copyright notice, 39 | this list of conditions and the following disclaimer in the documentation 40 | and/or other materials provided with the distribution. 41 | 42 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 43 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 44 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 45 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 46 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 47 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 48 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 49 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 50 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 51 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 52 | -------------------------------------------------------------------------------- /assets/bsd_2_clause.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var bsd_2_clause = txt(asset{Name: "bsd_2_clause.txt", Content: "" + 6 | "---\ntitle: BSD 2-clause \"Simplified\" License\nnickname: Simplified BSD\ntab-slug: bsd\nredirect_from: /licenses/bsd/\ncategory: BSD\nvariant: true\nsource: http://opensource.org/licenses/BSD-2-Clause\n\ndescription: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden:\n - no-liability\n\n---\n\nCopyright (c) [year], [fullname]\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" + 7 | "", etag: `"xnC7QeELVQY="`}) 8 | -------------------------------------------------------------------------------- /assets/bsd_3_clause.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: BSD 3-clause "New" or "Revised" License 3 | nickname: New BSD 4 | tab-slug: bsd-3 5 | category: BSD 6 | variant: true 7 | source: http://opensource.org/licenses/BSD-3-Clause 8 | 9 | description: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent. 10 | 11 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work. 12 | 13 | required: 14 | - include-copyright 15 | 16 | permitted: 17 | - commercial-use 18 | - modifications 19 | - distribution 20 | - sublicense 21 | - private-use 22 | 23 | forbidden: 24 | - no-liability 25 | - trademark-use 26 | 27 | --- 28 | 29 | Copyright (c) [year], [fullname] 30 | All rights reserved. 31 | 32 | Redistribution and use in source and binary forms, with or without 33 | modification, are permitted provided that the following conditions are met: 34 | 35 | * Redistributions of source code must retain the above copyright notice, this 36 | list of conditions and the following disclaimer. 37 | 38 | * Redistributions in binary form must reproduce the above copyright notice, 39 | this list of conditions and the following disclaimer in the documentation 40 | and/or other materials provided with the distribution. 41 | 42 | * Neither the name of [project] nor the names of its 43 | contributors may be used to endorse or promote products derived from 44 | this software without specific prior written permission. 45 | 46 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 47 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 48 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 49 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 50 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 51 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 52 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 53 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 54 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 55 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 | -------------------------------------------------------------------------------- /assets/bsd_3_clause.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var bsd_3_clause = txt(asset{Name: "bsd_3_clause.txt", Content: "" + 6 | "---\ntitle: BSD 3-clause \"New\" or \"Revised\" License\nnickname: New BSD\ntab-slug: bsd-3\ncategory: BSD\nvariant: true\nsource: http://opensource.org/licenses/BSD-3-Clause\n\ndescription: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden:\n - no-liability\n - trademark-use\n\n---\n\nCopyright (c) [year], [fullname]\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of [project] nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" + 7 | "", etag: `"2QZSVlWV3G4="`}) 8 | -------------------------------------------------------------------------------- /assets/bsd_3_clause_clear.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: BSD 3-clause Clear License 3 | nickname: Clear BSD 4 | hidden: true 5 | 6 | category: BSD 7 | tab-slug: bsd-3-clear 8 | variant: true 9 | 10 | description: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent. 11 | 12 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work. 13 | 14 | source: https://spdx.org/licenses/BSD-3-Clause-Clear.html 15 | 16 | required: 17 | - include-copyright 18 | 19 | permitted: 20 | - commercial-use 21 | - modifications 22 | - distribution 23 | - sublicense 24 | - private-use 25 | 26 | forbidden: 27 | - no-liability 28 | - trademark-use 29 | 30 | --- 31 | 32 | The Clear BSD License 33 | 34 | Copyright (c) [year], [fullname] 35 | All rights reserved. 36 | 37 | Redistribution and use in source and binary forms, with or without 38 | modification, are permitted (subject to the limitations in the disclaimer 39 | below) provided that the following conditions are met: 40 | 41 | * Redistributions of source code must retain the above copyright notice, this 42 | list of conditions and the following disclaimer. 43 | 44 | * Redistributions in binary form must reproduce the above copyright notice, 45 | this list of conditions and the following disclaimer in the documentation 46 | and/or other materials provided with the distribution. 47 | 48 | * Neither the name of [project] nor the names of its contributors may be used 49 | to endorse or promote products derived from this software without specific 50 | prior written permission. 51 | 52 | NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS 53 | LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 54 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 55 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 56 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 57 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 58 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 59 | GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 60 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 61 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 62 | OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 63 | DAMAGE. 64 | -------------------------------------------------------------------------------- /assets/bsd_3_clause_clear.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var bsd_3_clause_clear = txt(asset{Name: "bsd_3_clause_clear.txt", Content: "" + 6 | "---\ntitle: BSD 3-clause Clear License\nnickname: Clear BSD\nhidden: true\n\ncategory: BSD\ntab-slug: bsd-3-clear\nvariant: true\n\ndescription: A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. Both have very minute differences to the MIT license. The three clause variant prohibits others from using the name of the project or its contributors to promote derivative works without written consent.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.\n\nsource: https://spdx.org/licenses/BSD-3-Clause-Clear.html\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden:\n - no-liability\n - trademark-use\n\n---\n\nThe Clear BSD License\n\nCopyright (c) [year], [fullname]\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted (subject to the limitations in the disclaimer\nbelow) provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of [project] nor the names of its contributors may be used\n to endorse or promote products derived from this software without specific\n prior written permission.\n\nNO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS\nLICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGE.\n" + 7 | "", etag: `"8ypX1gptuig="`}) 8 | -------------------------------------------------------------------------------- /assets/cc0_1.0.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Creative Commons Zero v1.0 Universal 3 | nickname: CC0 1.0 Universal 4 | tab-slug: cc0 5 | redirect_from: /licenses/cc0/ 6 | category: Public Domain Dedication 7 | variant: true 8 | source: http://creativecommons.org/publicdomain/zero/1.0/ 9 | 10 | description: The Creative Commons CC0 Public Domain Dedication waives copyright interest in any a work you've created and dedicates it to the world-wide public domain. Use CC0 to opt out of copyright entirely and ensure your work has the widest reach. As with the Unlicense and typical software licenses, CC0 disclaims warranties. CC0 is very similar to the Unlicense. 11 | 12 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the CC0 into the file. 13 | 14 | required: 15 | 16 | permitted: 17 | - commercial-use 18 | - modifications 19 | - distribution 20 | - private-use 21 | 22 | forbidden: 23 | - no-liability 24 | 25 | required: [] 26 | 27 | --- 28 | 29 | CC0 1.0 Universal 30 | 31 | Statement of Purpose 32 | 33 | The laws of most jurisdictions throughout the world automatically confer 34 | exclusive Copyright and Related Rights (defined below) upon the creator and 35 | subsequent owner(s) (each and all, an "owner") of an original work of 36 | authorship and/or a database (each, a "Work"). 37 | 38 | Certain owners wish to permanently relinquish those rights to a Work for the 39 | purpose of contributing to a commons of creative, cultural and scientific 40 | works ("Commons") that the public can reliably and without fear of later 41 | claims of infringement build upon, modify, incorporate in other works, reuse 42 | and redistribute as freely as possible in any form whatsoever and for any 43 | purposes, including without limitation commercial purposes. These owners may 44 | contribute to the Commons to promote the ideal of a free culture and the 45 | further production of creative, cultural and scientific works, or to gain 46 | reputation or greater distribution for their Work in part through the use and 47 | efforts of others. 48 | 49 | For these and/or other purposes and motivations, and without any expectation 50 | of additional consideration or compensation, the person associating CC0 with a 51 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright 52 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work 53 | and publicly distribute the Work under its terms, with knowledge of his or her 54 | Copyright and Related Rights in the Work and the meaning and intended legal 55 | effect of CC0 on those rights. 56 | 57 | 1. Copyright and Related Rights. A Work made available under CC0 may be 58 | protected by copyright and related or neighboring rights ("Copyright and 59 | Related Rights"). Copyright and Related Rights include, but are not limited 60 | to, the following: 61 | 62 | i. the right to reproduce, adapt, distribute, perform, display, communicate, 63 | and translate a Work; 64 | 65 | ii. moral rights retained by the original author(s) and/or performer(s); 66 | 67 | iii. publicity and privacy rights pertaining to a person's image or likeness 68 | depicted in a Work; 69 | 70 | iv. rights protecting against unfair competition in regards to a Work, 71 | subject to the limitations in paragraph 4(a), below; 72 | 73 | v. rights protecting the extraction, dissemination, use and reuse of data in 74 | a Work; 75 | 76 | vi. database rights (such as those arising under Directive 96/9/EC of the 77 | European Parliament and of the Council of 11 March 1996 on the legal 78 | protection of databases, and under any national implementation thereof, 79 | including any amended or successor version of such directive); and 80 | 81 | vii. other similar, equivalent or corresponding rights throughout the world 82 | based on applicable law or treaty, and any national implementations thereof. 83 | 84 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, 85 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and 86 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright 87 | and Related Rights and associated claims and causes of action, whether now 88 | known or unknown (including existing as well as future claims and causes of 89 | action), in the Work (i) in all territories worldwide, (ii) for the maximum 90 | duration provided by applicable law or treaty (including future time 91 | extensions), (iii) in any current or future medium and for any number of 92 | copies, and (iv) for any purpose whatsoever, including without limitation 93 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes 94 | the Waiver for the benefit of each member of the public at large and to the 95 | detriment of Affirmer's heirs and successors, fully intending that such Waiver 96 | shall not be subject to revocation, rescission, cancellation, termination, or 97 | any other legal or equitable action to disrupt the quiet enjoyment of the Work 98 | by the public as contemplated by Affirmer's express Statement of Purpose. 99 | 100 | 3. Public License Fallback. Should any part of the Waiver for any reason be 101 | judged legally invalid or ineffective under applicable law, then the Waiver 102 | shall be preserved to the maximum extent permitted taking into account 103 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver 104 | is so judged Affirmer hereby grants to each affected person a royalty-free, 105 | non transferable, non sublicensable, non exclusive, irrevocable and 106 | unconditional license to exercise Affirmer's Copyright and Related Rights in 107 | the Work (i) in all territories worldwide, (ii) for the maximum duration 108 | provided by applicable law or treaty (including future time extensions), (iii) 109 | in any current or future medium and for any number of copies, and (iv) for any 110 | purpose whatsoever, including without limitation commercial, advertising or 111 | promotional purposes (the "License"). The License shall be deemed effective as 112 | of the date CC0 was applied by Affirmer to the Work. Should any part of the 113 | License for any reason be judged legally invalid or ineffective under 114 | applicable law, such partial invalidity or ineffectiveness shall not 115 | invalidate the remainder of the License, and in such case Affirmer hereby 116 | affirms that he or she will not (i) exercise any of his or her remaining 117 | Copyright and Related Rights in the Work or (ii) assert any associated claims 118 | and causes of action with respect to the Work, in either case contrary to 119 | Affirmer's express Statement of Purpose. 120 | 121 | 4. Limitations and Disclaimers. 122 | 123 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 124 | surrendered, licensed or otherwise affected by this document. 125 | 126 | b. Affirmer offers the Work as-is and makes no representations or warranties 127 | of any kind concerning the Work, express, implied, statutory or otherwise, 128 | including without limitation warranties of title, merchantability, fitness 129 | for a particular purpose, non infringement, or the absence of latent or 130 | other defects, accuracy, or the present or absence of errors, whether or not 131 | discoverable, all to the greatest extent permissible under applicable law. 132 | 133 | c. Affirmer disclaims responsibility for clearing rights of other persons 134 | that may apply to the Work or any use thereof, including without limitation 135 | any person's Copyright and Related Rights in the Work. Further, Affirmer 136 | disclaims responsibility for obtaining any necessary consents, permissions 137 | or other rights required for any use of the Work. 138 | 139 | d. Affirmer understands and acknowledges that Creative Commons is not a 140 | party to this document and has no duty or obligation with respect to this 141 | CC0 or use of the Work. 142 | 143 | For more information, please see 144 | 145 | -------------------------------------------------------------------------------- /assets/cc0_1.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var cc0_1 = txt(asset{Name: "cc0_1.0.txt", Content: "" + 6 | "---\ntitle: Creative Commons Zero v1.0 Universal\nnickname: CC0 1.0 Universal\ntab-slug: cc0\nredirect_from: /licenses/cc0/\ncategory: Public Domain Dedication\nvariant: true\nsource: http://creativecommons.org/publicdomain/zero/1.0/\n\ndescription: The Creative Commons CC0 Public Domain Dedication waives copyright interest in any a work you've created and dedicates it to the world-wide public domain. Use CC0 to opt out of copyright entirely and ensure your work has the widest reach. As with the Unlicense and typical software licenses, CC0 disclaims warranties. CC0 is very similar to the Unlicense.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the CC0 into the file.\n\nrequired:\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - private-use\n\nforbidden:\n - no-liability\n\nrequired: []\n\n---\n\nCC0 1.0 Universal\n\nStatement of Purpose\n\nThe laws of most jurisdictions throughout the world automatically confer\nexclusive Copyright and Related Rights (defined below) upon the creator and\nsubsequent owner(s) (each and all, an \"owner\") of an original work of\nauthorship and/or a database (each, a \"Work\").\n\nCertain owners wish to permanently relinquish those rights to a Work for the\npurpose of contributing to a commons of creative, cultural and scientific\nworks (\"Commons\") that the public can reliably and without fear of later\nclaims of infringement build upon, modify, incorporate in other works, reuse\nand redistribute as freely as possible in any form whatsoever and for any\npurposes, including without limitation commercial purposes. These owners may\ncontribute to the Commons to promote the ideal of a free culture and the\nfurther production of creative, cultural and scientific works, or to gain\nreputation or greater distribution for their Work in part through the use and\nefforts of others.\n\nFor these and/or other purposes and motivations, and without any expectation\nof additional consideration or compensation, the person associating CC0 with a\nWork (the \"Affirmer\"), to the extent that he or she is an owner of Copyright\nand Related Rights in the Work, voluntarily elects to apply CC0 to the Work\nand publicly distribute the Work under its terms, with knowledge of his or her\nCopyright and Related Rights in the Work and the meaning and intended legal\neffect of CC0 on those rights.\n\n1. Copyright and Related Rights. A Work made available under CC0 may be\nprotected by copyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but are not limited\nto, the following:\n\n i. the right to reproduce, adapt, distribute, perform, display, communicate,\n and translate a Work;\n\n ii. moral rights retained by the original author(s) and/or performer(s);\n\n iii. publicity and privacy rights pertaining to a person's image or likeness\n depicted in a Work;\n\n iv. rights protecting against unfair competition in regards to a Work,\n subject to the limitations in paragraph 4(a), below;\n\n v. rights protecting the extraction, dissemination, use and reuse of data in\n a Work;\n\n vi. database rights (such as those arising under Directive 96/9/EC of the\n European Parliament and of the Council of 11 March 1996 on the legal\n protection of databases, and under any national implementation thereof,\n including any amended or successor version of such directive); and\n\n vii. other similar, equivalent or corresponding rights throughout the world\n based on applicable law or treaty, and any national implementations thereof.\n\n2. Waiver. To the greatest extent permitted by, but not in contravention of,\napplicable law, Affirmer hereby overtly, fully, permanently, irrevocably and\nunconditionally waives, abandons, and surrenders all of Affirmer's Copyright\nand Related Rights and associated claims and causes of action, whether now\nknown or unknown (including existing as well as future claims and causes of\naction), in the Work (i) in all territories worldwide, (ii) for the maximum\nduration provided by applicable law or treaty (including future time\nextensions), (iii) in any current or future medium and for any number of\ncopies, and (iv) for any purpose whatsoever, including without limitation\ncommercial, advertising or promotional purposes (the \"Waiver\"). Affirmer makes\nthe Waiver for the benefit of each member of the public at large and to the\ndetriment of Affirmer's heirs and successors, fully intending that such Waiver\nshall not be subject to revocation, rescission, cancellation, termination, or\nany other legal or equitable action to disrupt the quiet enjoyment of the Work\nby the public as contemplated by Affirmer's express Statement of Purpose.\n\n3. Public License Fallback. Should any part of the Waiver for any reason be\njudged legally invalid or ineffective under applicable law, then the Waiver\nshall be preserved to the maximum extent permitted taking into account\nAffirmer's express Statement of Purpose. In addition, to the extent the Waiver\nis so judged Affirmer hereby grants to each affected person a royalty-free,\nnon transferable, non sublicensable, non exclusive, irrevocable and\nunconditional license to exercise Affirmer's Copyright and Related Rights in\nthe Work (i) in all territories worldwide, (ii) for the maximum duration\nprovided by applicable law or treaty (including future time extensions), (iii)\nin any current or future medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial, advertising or\npromotional purposes (the \"License\"). The License shall be deemed effective as\nof the date CC0 was applied by Affirmer to the Work. Should any part of the\nLicense for any reason be judged legally invalid or ineffective under\napplicable law, such partial invalidity or ineffectiveness shall not\ninvalidate the remainder of the License, and in such case Affirmer hereby\naffirms that he or she will not (i) exercise any of his or her remaining\nCopyright and Related Rights in the Work or (ii) assert any associated claims\nand causes of action with respect to the Work, in either case contrary to\nAffirmer's express Statement of Purpose.\n\n4. Limitations and Disclaimers.\n\n a. No trademark or patent rights held by Affirmer are waived, abandoned,\n surrendered, licensed or otherwise affected by this document.\n\n b. Affirmer offers the Work as-is and makes no representations or warranties\n of any kind concerning the Work, express, implied, statutory or otherwise,\n including without limitation warranties of title, merchantability, fitness\n for a particular purpose, non infringement, or the absence of latent or\n other defects, accuracy, or the present or absence of errors, whether or not\n discoverable, all to the greatest extent permissible under applicable law.\n\n c. Affirmer disclaims responsibility for clearing rights of other persons\n that may apply to the Work or any use thereof, including without limitation\n any person's Copyright and Related Rights in the Work. Further, Affirmer\n disclaims responsibility for obtaining any necessary consents, permissions\n or other rights required for any use of the Work.\n\n d. Affirmer understands and acknowledges that Creative Commons is not a\n party to this document and has no duty or obligation with respect to this\n CC0 or use of the Work.\n\nFor more information, please see\n\n" + 7 | "", etag: `"vw8Ov1ZJjd8="`}) 8 | -------------------------------------------------------------------------------- /assets/epl_1.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var epl_1 = txt(asset{Name: "epl_1.0.txt", Content: "" + 6 | "---\ntitle: Eclipse Public License 1.0\nredirect_from: /licenses/eclipse/\nsource: http://www.eclipse.org/legal/epl-v10.html\n\ndescription: This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.\n\nusing:\n The Eclipse Foundation: \"http://www.eclipse.org\"\n OpenDaylight: \"http://www.opendaylight.org/\"\n Clojure: \"http://clojure.org/\"\n JUnit: \"http://junit.org/\"\n Ruby: \"https://github.com/jruby/jruby\"\n Mondrian: \"http://en.wikipedia.org/wiki/Mondrian_OLAP_server\"\n\nrequired:\n - disclose-source\n - include-copyright\n\npermitted:\n - commercial-use\n - distribution\n - modifications\n - sublicense\n - patent-grant\n - private-use\n\nforbidden:\n - no-liability\n\n---\n\nEclipse Public License - v 1.0\n\nTHE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC\nLICENSE (\"AGREEMENT\"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM\nCONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\n1. DEFINITIONS\n\n\"Contribution\" means:\n\na) in the case of the initial Contributor, the initial code and documentation\n distributed under this Agreement, and\nb) in the case of each subsequent Contributor:\n i) changes to the Program, and\n ii) additions to the Program;\n\n where such changes and/or additions to the Program originate from and are\n distributed by that particular Contributor. A Contribution 'originates'\n from a Contributor if it was added to the Program by such Contributor\n itself or anyone acting on such Contributor's behalf. Contributions do not\n include additions to the Program which: (i) are separate modules of\n software distributed in conjunction with the Program under their own\n license agreement, and (ii) are not derivative works of the Program.\n\n\"Contributor\" means any person or entity that distributes the Program.\n\n\"Licensed Patents\" mean patent claims licensable by a Contributor which are\nnecessarily infringed by the use or sale of its Contribution alone or when\ncombined with the Program.\n\n\"Program\" means the Contributions distributed in accordance with this\nAgreement.\n\n\"Recipient\" means anyone who receives the Program under this Agreement,\nincluding all Contributors.\n\n2. GRANT OF RIGHTS\n a) Subject to the terms of this Agreement, each Contributor hereby grants\n Recipient a non-exclusive, worldwide, royalty-free copyright license to\n reproduce, prepare derivative works of, publicly display, publicly\n perform, distribute and sublicense the Contribution of such Contributor,\n if any, and such derivative works, in source code and object code form.\n b) Subject to the terms of this Agreement, each Contributor hereby grants\n Recipient a non-exclusive, worldwide, royalty-free patent license under\n Licensed Patents to make, use, sell, offer to sell, import and otherwise\n transfer the Contribution of such Contributor, if any, in source code and\n object code form. This patent license shall apply to the combination of\n the Contribution and the Program if, at the time the Contribution is\n added by the Contributor, such addition of the Contribution causes such\n combination to be covered by the Licensed Patents. The patent license\n shall not apply to any other combinations which include the Contribution.\n No hardware per se is licensed hereunder.\n c) Recipient understands that although each Contributor grants the licenses\n to its Contributions set forth herein, no assurances are provided by any\n Contributor that the Program does not infringe the patent or other\n intellectual property rights of any other entity. Each Contributor\n disclaims any liability to Recipient for claims brought by any other\n entity based on infringement of intellectual property rights or\n otherwise. As a condition to exercising the rights and licenses granted\n hereunder, each Recipient hereby assumes sole responsibility to secure\n any other intellectual property rights needed, if any. For example, if a\n third party patent license is required to allow Recipient to distribute\n the Program, it is Recipient's responsibility to acquire that license\n before distributing the Program.\n d) Each Contributor represents that to its knowledge it has sufficient\n copyright rights in its Contribution, if any, to grant the copyright\n license set forth in this Agreement.\n\n3. REQUIREMENTS\n\nA Contributor may choose to distribute the Program in object code form under\nits own license agreement, provided that:\n\n a) it complies with the terms and conditions of this Agreement; and\n b) its license agreement:\n i) effectively disclaims on behalf of all Contributors all warranties\n and conditions, express and implied, including warranties or\n conditions of title and non-infringement, and implied warranties or\n conditions of merchantability and fitness for a particular purpose;\n ii) effectively excludes on behalf of all Contributors all liability for\n damages, including direct, indirect, special, incidental and\n consequential damages, such as lost profits;\n iii) states that any provisions which differ from this Agreement are\n offered by that Contributor alone and not by any other party; and\n iv) states that source code for the Program is available from such\n Contributor, and informs licensees how to obtain it in a reasonable\n manner on or through a medium customarily used for software exchange.\n\nWhen the Program is made available in source code form:\n\n a) it must be made available under this Agreement; and\n b) a copy of this Agreement must be included with each copy of the Program.\n Contributors may not remove or alter any copyright notices contained\n within the Program.\n\nEach Contributor must identify itself as the originator of its Contribution,\nif\nany, in a manner that reasonably allows subsequent Recipients to identify the\noriginator of the Contribution.\n\n4. COMMERCIAL DISTRIBUTION\n\nCommercial distributors of software may accept certain responsibilities with\nrespect to end users, business partners and the like. While this license is\nintended to facilitate the commercial use of the Program, the Contributor who\nincludes the Program in a commercial product offering should do so in a manner\nwhich does not create potential liability for other Contributors. Therefore,\nif a Contributor includes the Program in a commercial product offering, such\nContributor (\"Commercial Contributor\") hereby agrees to defend and indemnify\nevery other Contributor (\"Indemnified Contributor\") against any losses,\ndamages and costs (collectively \"Losses\") arising from claims, lawsuits and\nother legal actions brought by a third party against the Indemnified\nContributor to the extent caused by the acts or omissions of such Commercial\nContributor in connection with its distribution of the Program in a commercial\nproduct offering. The obligations in this section do not apply to any claims\nor Losses relating to any actual or alleged intellectual property\ninfringement. In order to qualify, an Indemnified Contributor must:\na) promptly notify the Commercial Contributor in writing of such claim, and\nb) allow the Commercial Contributor to control, and cooperate with the\nCommercial Contributor in, the defense and any related settlement\nnegotiations. The Indemnified Contributor may participate in any such claim at\nits own expense.\n\nFor example, a Contributor might include the Program in a commercial product\noffering, Product X. That Contributor is then a Commercial Contributor. If\nthat Commercial Contributor then makes performance claims, or offers\nwarranties related to Product X, those performance claims and warranties are\nsuch Commercial Contributor's responsibility alone. Under this section, the\nCommercial Contributor would have to defend claims against the other\nContributors related to those performance claims and warranties, and if a\ncourt requires any other Contributor to pay any damages as a result, the\nCommercial Contributor must pay those damages.\n\n5. NO WARRANTY\n\nEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR\nIMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each\nRecipient is solely responsible for determining the appropriateness of using\nand distributing the Program and assumes all risks associated with its\nexercise of rights under this Agreement , including but not limited to the\nrisks and costs of program errors, compliance with applicable laws, damage to\nor loss of data, programs or equipment, and unavailability or interruption of\noperations.\n\n6. DISCLAIMER OF LIABILITY\n\nEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY\nCONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION\nLOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE\nEXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY\nOF SUCH DAMAGES.\n\n7. GENERAL\n\nIf any provision of this Agreement is invalid or unenforceable under\napplicable law, it shall not affect the validity or enforceability of the\nremainder of the terms of this Agreement, and without further action by the\nparties hereto, such provision shall be reformed to the minimum extent\nnecessary to make such provision valid and enforceable.\n\nIf Recipient institutes patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Program itself\n(excluding combinations of the Program with other software or hardware)\ninfringes such Recipient's patent(s), then such Recipient's rights granted\nunder Section 2(b) shall terminate as of the date such litigation is filed.\n\nAll Recipient's rights under this Agreement shall terminate if it fails to\ncomply with any of the material terms or conditions of this Agreement and does\nnot cure such failure in a reasonable period of time after becoming aware of\nsuch noncompliance. If all Recipient's rights under this Agreement terminate,\nRecipient agrees to cease use and distribution of the Program as soon as\nreasonably practicable. However, Recipient's obligations under this Agreement\nand any licenses granted by Recipient relating to the Program shall continue\nand survive.\n\nEveryone is permitted to copy and distribute copies of this Agreement, but in\norder to avoid inconsistency the Agreement is copyrighted and may only be\nmodified in the following manner. The Agreement Steward reserves the right to\npublish new versions (including revisions) of this Agreement from time to\ntime. No one other than the Agreement Steward has the right to modify this\nAgreement. The Eclipse Foundation is the initial Agreement Steward. The\nEclipse Foundation may assign the responsibility to serve as the Agreement\nSteward to a suitable separate entity. Each new version of the Agreement will\nbe given a distinguishing version number. The Program (including\nContributions) may always be distributed subject to the version of the\nAgreement under which it was received. In addition, after a new version of the\nAgreement is published, Contributor may elect to distribute the Program\n(including its Contributions) under the new version. Except as expressly\nstated in Sections 2(a) and 2(b) above, Recipient receives no rights or\nlicenses to the intellectual property of any Contributor under this Agreement,\nwhether expressly, by implication, estoppel or otherwise. All rights in the\nProgram not expressly granted under this Agreement are reserved.\n\nThis Agreement is governed by the laws of the State of New York and the\nintellectual property laws of the United States of America. No party to this\nAgreement will bring a legal action under this Agreement more than one year\nafter the cause of action arose. Each party waives its rights to a jury trial in\nany resulting litigation.\n" + 7 | "", etag: `"GzL7B4ECAI0="`}) 8 | -------------------------------------------------------------------------------- /assets/isc.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: ISC License 3 | tab-slug: isc 4 | category: BSD 5 | source: http://opensource.org/licenses/isc-license 6 | 7 | description: A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary. 8 | 9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. 10 | 11 | required: 12 | - include-copyright 13 | 14 | permitted: 15 | - commercial-use 16 | - distribution 17 | - modifications 18 | - private-use 19 | - sublicense 20 | 21 | forbidden: 22 | - no-liability 23 | 24 | --- 25 | 26 | Copyright (c) [year], [fullname] 27 | 28 | Permission to use, copy, modify, and/or distribute this software for any 29 | purpose with or without fee is hereby granted, provided that the above 30 | copyright notice and this permission notice appear in all copies. 31 | 32 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 33 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 34 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 35 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 36 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 37 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 38 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 39 | -------------------------------------------------------------------------------- /assets/isc.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var isc = txt(asset{Name: "isc.txt", Content: "" + 6 | "---\ntitle: ISC License\ntab-slug: isc\ncategory: BSD\nsource: http://opensource.org/licenses/isc-license\n\ndescription: A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - distribution\n - modifications\n - private-use\n - sublicense\n\nforbidden:\n - no-liability\n\n---\n\nCopyright (c) [year], [fullname]\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n" + 7 | "", etag: `"m1ByQy6u6k4="`}) 8 | -------------------------------------------------------------------------------- /assets/lgpl_3.0.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: GNU Lesser General Public License v3.0 3 | nickname: GNU LGPL v3.0 4 | tab-slug: lgpl-v3 5 | redirect_from: /licenses/lgpl-v3/ 6 | category: LGPL 7 | variant: true 8 | source: http://www.gnu.org/licenses/lgpl-3.0.txt 9 | 10 | description: Version 3 of the LGPL is an additional set of permissions to the GPL v3 license that requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. 11 | 12 | how: This license is an additional set of permissions to the GPL v3 license. Follow the instructions to apply the GPL v3. Then either paste this text to the bottom of the created file OR add a separate file (typically named COPYING.lesser or LICENSE.lesser) in the root of your source code and copy the text. 13 | 14 | note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the GPL v3 license. Insert the word “Lesser” before “General” in all three places in the boilerplate notice to make sure that you refer to the LGPL v3 and not the GPL v3. 15 | 16 | required: 17 | - include-copyright 18 | - library-usage 19 | - disclose-source 20 | 21 | permitted: 22 | - commercial-use 23 | - modifications 24 | - distribution 25 | - sublicense 26 | - patent-grant 27 | - private-use 28 | 29 | forbidden: 30 | - no-liability 31 | 32 | --- 33 | 34 | GNU LESSER GENERAL PUBLIC LICENSE 35 | Version 3, 29 June 2007 36 | 37 | Copyright (C) 2007 Free Software Foundation, Inc. 38 | Everyone is permitted to copy and distribute verbatim copies 39 | of this license document, but changing it is not allowed. 40 | 41 | 42 | This version of the GNU Lesser General Public License incorporates 43 | the terms and conditions of version 3 of the GNU General Public 44 | License, supplemented by the additional permissions listed below. 45 | 46 | 0. Additional Definitions. 47 | 48 | As used herein, "this License" refers to version 3 of the GNU Lesser 49 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 50 | General Public License. 51 | 52 | "The Library" refers to a covered work governed by this License, 53 | other than an Application or a Combined Work as defined below. 54 | 55 | An "Application" is any work that makes use of an interface provided 56 | by the Library, but which is not otherwise based on the Library. 57 | Defining a subclass of a class defined by the Library is deemed a mode 58 | of using an interface provided by the Library. 59 | 60 | A "Combined Work" is a work produced by combining or linking an 61 | Application with the Library. The particular version of the Library 62 | with which the Combined Work was made is also called the "Linked 63 | Version". 64 | 65 | The "Minimal Corresponding Source" for a Combined Work means the 66 | Corresponding Source for the Combined Work, excluding any source code 67 | for portions of the Combined Work that, considered in isolation, are 68 | based on the Application, and not on the Linked Version. 69 | 70 | The "Corresponding Application Code" for a Combined Work means the 71 | object code and/or source code for the Application, including any data 72 | and utility programs needed for reproducing the Combined Work from the 73 | Application, but excluding the System Libraries of the Combined Work. 74 | 75 | 1. Exception to Section 3 of the GNU GPL. 76 | 77 | You may convey a covered work under sections 3 and 4 of this License 78 | without being bound by section 3 of the GNU GPL. 79 | 80 | 2. Conveying Modified Versions. 81 | 82 | If you modify a copy of the Library, and, in your modifications, a 83 | facility refers to a function or data to be supplied by an Application 84 | that uses the facility (other than as an argument passed when the 85 | facility is invoked), then you may convey a copy of the modified 86 | version: 87 | 88 | a) under this License, provided that you make a good faith effort to 89 | ensure that, in the event an Application does not supply the 90 | function or data, the facility still operates, and performs 91 | whatever part of its purpose remains meaningful, or 92 | 93 | b) under the GNU GPL, with none of the additional permissions of 94 | this License applicable to that copy. 95 | 96 | 3. Object Code Incorporating Material from Library Header Files. 97 | 98 | The object code form of an Application may incorporate material from 99 | a header file that is part of the Library. You may convey such object 100 | code under terms of your choice, provided that, if the incorporated 101 | material is not limited to numerical parameters, data structure 102 | layouts and accessors, or small macros, inline functions and templates 103 | (ten or fewer lines in length), you do both of the following: 104 | 105 | a) Give prominent notice with each copy of the object code that the 106 | Library is used in it and that the Library and its use are 107 | covered by this License. 108 | 109 | b) Accompany the object code with a copy of the GNU GPL and this license 110 | document. 111 | 112 | 4. Combined Works. 113 | 114 | You may convey a Combined Work under terms of your choice that, 115 | taken together, effectively do not restrict modification of the 116 | portions of the Library contained in the Combined Work and reverse 117 | engineering for debugging such modifications, if you also do each of 118 | the following: 119 | 120 | a) Give prominent notice with each copy of the Combined Work that 121 | the Library is used in it and that the Library and its use are 122 | covered by this License. 123 | 124 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 125 | document. 126 | 127 | c) For a Combined Work that displays copyright notices during 128 | execution, include the copyright notice for the Library among 129 | these notices, as well as a reference directing the user to the 130 | copies of the GNU GPL and this license document. 131 | 132 | d) Do one of the following: 133 | 134 | 0) Convey the Minimal Corresponding Source under the terms of this 135 | License, and the Corresponding Application Code in a form 136 | suitable for, and under terms that permit, the user to 137 | recombine or relink the Application with a modified version of 138 | the Linked Version to produce a modified Combined Work, in the 139 | manner specified by section 6 of the GNU GPL for conveying 140 | Corresponding Source. 141 | 142 | 1) Use a suitable shared library mechanism for linking with the 143 | Library. A suitable mechanism is one that (a) uses at run time 144 | a copy of the Library already present on the user's computer 145 | system, and (b) will operate properly with a modified version 146 | of the Library that is interface-compatible with the Linked 147 | Version. 148 | 149 | e) Provide Installation Information, but only if you would otherwise 150 | be required to provide such information under section 6 of the 151 | GNU GPL, and only to the extent that such information is 152 | necessary to install and execute a modified version of the 153 | Combined Work produced by recombining or relinking the 154 | Application with a modified version of the Linked Version. (If 155 | you use option 4d0, the Installation Information must accompany 156 | the Minimal Corresponding Source and Corresponding Application 157 | Code. If you use option 4d1, you must provide the Installation 158 | Information in the manner specified by section 6 of the GNU GPL 159 | for conveying Corresponding Source.) 160 | 161 | 5. Combined Libraries. 162 | 163 | You may place library facilities that are a work based on the 164 | Library side by side in a single library together with other library 165 | facilities that are not Applications and are not covered by this 166 | License, and convey such a combined library under terms of your 167 | choice, if you do both of the following: 168 | 169 | a) Accompany the combined library with a copy of the same work based 170 | on the Library, uncombined with any other library facilities, 171 | conveyed under the terms of this License. 172 | 173 | b) Give prominent notice with the combined library that part of it 174 | is a work based on the Library, and explaining where to find the 175 | accompanying uncombined form of the same work. 176 | 177 | 6. Revised Versions of the GNU Lesser General Public License. 178 | 179 | The Free Software Foundation may publish revised and/or new versions 180 | of the GNU Lesser General Public License from time to time. Such new 181 | versions will be similar in spirit to the present version, but may 182 | differ in detail to address new problems or concerns. 183 | 184 | Each version is given a distinguishing version number. If the 185 | Library as you received it specifies that a certain numbered version 186 | of the GNU Lesser General Public License "or any later version" 187 | applies to it, you have the option of following the terms and 188 | conditions either of that published version or of any later version 189 | published by the Free Software Foundation. If the Library as you 190 | received it does not specify a version number of the GNU Lesser 191 | General Public License, you may choose any version of the GNU Lesser 192 | General Public License ever published by the Free Software Foundation. 193 | 194 | If the Library as you received it specifies that a proxy can decide 195 | whether future versions of the GNU Lesser General Public License shall 196 | apply, that proxy's public statement of acceptance of any version is 197 | permanent authorization for you to choose that version for the 198 | Library. 199 | -------------------------------------------------------------------------------- /assets/lgpl_3.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var lgpl_3 = txt(asset{Name: "lgpl_3.0.txt", Content: "" + 6 | "---\ntitle: GNU Lesser General Public License v3.0\nnickname: GNU LGPL v3.0\ntab-slug: lgpl-v3\nredirect_from: /licenses/lgpl-v3/\ncategory: LGPL\nvariant: true\nsource: http://www.gnu.org/licenses/lgpl-3.0.txt\n\ndescription: Version 3 of the LGPL is an additional set of permissions to the GPL v3 license that requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction.\n\nhow: This license is an additional set of permissions to the GPL v3 license. Follow the instructions to apply the GPL v3. Then either paste this text to the bottom of the created file OR add a separate file (typically named COPYING.lesser or LICENSE.lesser) in the root of your source code and copy the text.\n\nnote: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the GPL v3 license. Insert the word \u201cLesser\u201d before \u201cGeneral\u201d in all three places in the boilerplate notice to make sure that you refer to the LGPL v3 and not the GPL v3.\n\nrequired:\n - include-copyright\n - library-usage\n - disclose-source\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - patent-grant\n - private-use\n\nforbidden:\n - no-liability\n\n---\n\n GNU LESSER GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n 0. Additional Definitions.\n\n As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library. The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n 1. Exception to Section 3 of the GNU GPL.\n\n You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n 2. Conveying Modified Versions.\n\n If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n a) under this License, provided that you make a good faith effort to\n ensure that, in the event an Application does not supply the\n function or data, the facility still operates, and performs\n whatever part of its purpose remains meaningful, or\n\n b) under the GNU GPL, with none of the additional permissions of\n this License applicable to that copy.\n\n 3. Object Code Incorporating Material from Library Header Files.\n\n The object code form of an Application may incorporate material from\na header file that is part of the Library. You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n a) Give prominent notice with each copy of the object code that the\n Library is used in it and that the Library and its use are\n covered by this License.\n\n b) Accompany the object code with a copy of the GNU GPL and this license\n document.\n\n 4. Combined Works.\n\n You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n a) Give prominent notice with each copy of the Combined Work that\n the Library is used in it and that the Library and its use are\n covered by this License.\n\n b) Accompany the Combined Work with a copy of the GNU GPL and this license\n document.\n\n c) For a Combined Work that displays copyright notices during\n execution, include the copyright notice for the Library among\n these notices, as well as a reference directing the user to the\n copies of the GNU GPL and this license document.\n\n d) Do one of the following:\n\n 0) Convey the Minimal Corresponding Source under the terms of this\n License, and the Corresponding Application Code in a form\n suitable for, and under terms that permit, the user to\n recombine or relink the Application with a modified version of\n the Linked Version to produce a modified Combined Work, in the\n manner specified by section 6 of the GNU GPL for conveying\n Corresponding Source.\n\n 1) Use a suitable shared library mechanism for linking with the\n Library. A suitable mechanism is one that (a) uses at run time\n a copy of the Library already present on the user's computer\n system, and (b) will operate properly with a modified version\n of the Library that is interface-compatible with the Linked\n Version.\n\n e) Provide Installation Information, but only if you would otherwise\n be required to provide such information under section 6 of the\n GNU GPL, and only to the extent that such information is\n necessary to install and execute a modified version of the\n Combined Work produced by recombining or relinking the\n Application with a modified version of the Linked Version. (If\n you use option 4d0, the Installation Information must accompany\n the Minimal Corresponding Source and Corresponding Application\n Code. If you use option 4d1, you must provide the Installation\n Information in the manner specified by section 6 of the GNU GPL\n for conveying Corresponding Source.)\n\n 5. Combined Libraries.\n\n You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n a) Accompany the combined library with a copy of the same work based\n on the Library, uncombined with any other library facilities,\n conveyed under the terms of this License.\n\n b) Give prominent notice with the combined library that part of it\n is a work based on the Library, and explaining where to find the\n accompanying uncombined form of the same work.\n\n 6. Revised Versions of the GNU Lesser General Public License.\n\n The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n" + 7 | "", etag: `"UVz0TRAeesM="`}) 8 | -------------------------------------------------------------------------------- /assets/mit.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: MIT License 3 | featured: true 4 | source: http://opensource.org/licenses/MIT 5 | 6 | description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty. 7 | 8 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. 9 | 10 | required: 11 | - include-copyright 12 | 13 | permitted: 14 | - commercial-use 15 | - modifications 16 | - distribution 17 | - sublicense 18 | - private-use 19 | 20 | forbidden: 21 | - no-liability 22 | 23 | --- 24 | 25 | The MIT License (MIT) 26 | 27 | Copyright (c) [year] [fullname] 28 | 29 | Permission is hereby granted, free of charge, to any person obtaining a copy 30 | of this software and associated documentation files (the "Software"), to deal 31 | in the Software without restriction, including without limitation the rights 32 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 33 | copies of the Software, and to permit persons to whom the Software is 34 | furnished to do so, subject to the following conditions: 35 | 36 | The above copyright notice and this permission notice shall be included in all 37 | copies or substantial portions of the Software. 38 | 39 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 43 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 44 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 45 | SOFTWARE. 46 | -------------------------------------------------------------------------------- /assets/mit.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var mit = txt(asset{Name: "mit.txt", Content: "" + 6 | "---\ntitle: MIT License\nfeatured: true\nsource: http://opensource.org/licenses/MIT\n\ndescription: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden:\n - no-liability\n\n---\n\nThe MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" + 7 | "", etag: `"oPA4Ri0j66U="`}) 8 | -------------------------------------------------------------------------------- /assets/ms_pl.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Microsoft Public License 3 | hidden: true 4 | 5 | source: http://opensource.org/licenses/ms-pl 6 | 7 | description: "Microsoft Open Source" 8 | 9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. 10 | 11 | required: 12 | - include-copyright 13 | 14 | permitted: 15 | - commercial-use 16 | - modifications 17 | - distribution 18 | - patent-grant 19 | - private-use 20 | 21 | forbidden: 22 | - no-liability 23 | - trademark-use 24 | --- 25 | 26 | Microsoft Public License (MS-PL) 27 | 28 | This license governs use of the accompanying software. If you use the software, you 29 | accept this license. If you do not accept the license, do not use the software. 30 | 31 | 1. Definitions 32 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the 33 | same meaning here as under U.S. copyright law. 34 | A "contribution" is the original software, or any additions or changes to the software. 35 | A "contributor" is any person that distributes its contribution under this license. 36 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 37 | 38 | 2. Grant of Rights 39 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 40 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 41 | 42 | 3. Conditions and Limitations 43 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 44 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 45 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 46 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 47 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 48 | -------------------------------------------------------------------------------- /assets/ms_pl.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var ms_pl = txt(asset{Name: "ms_pl.txt", Content: "" + 6 | "---\ntitle: Microsoft Public License\nhidden: true \n\nsource: http://opensource.org/licenses/ms-pl\n\ndescription: \"Microsoft Open Source\"\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - patent-grant\n - private-use\n\nforbidden:\n - no-liability\n - trademark-use\n---\n\nMicrosoft Public License (MS-PL)\n\nThis license governs use of the accompanying software. If you use the software, you\naccept this license. If you do not accept the license, do not use the software.\n\n1. Definitions\nThe terms \"reproduce,\" \"reproduction,\" \"derivative works,\" and \"distribution\" have the\nsame meaning here as under U.S. copyright law.\nA \"contribution\" is the original software, or any additions or changes to the software.\nA \"contributor\" is any person that distributes its contribution under this license.\n\"Licensed patents\" are a contributor's patent claims that read directly on its contribution.\n\n2. Grant of Rights\n(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.\n(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.\n\n3. Conditions and Limitations\n(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.\n(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.\n(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.\n(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.\n(E) The software is licensed \"as-is.\" You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.\n" + 7 | "", etag: `"3/xRNQtyCYA="`}) 8 | -------------------------------------------------------------------------------- /assets/ms_rl.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Microsoft Reciprocal License 3 | hidden: true 4 | 5 | source: http://opensource.org/licenses/ms-pl 6 | 7 | description: "Microsoft Open Source" 8 | 9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. 10 | 11 | required: 12 | - include-copyright 13 | 14 | permitted: 15 | - commercial-use 16 | - modifications 17 | - distribution 18 | - patent-grant 19 | - private-use 20 | 21 | forbidden: 22 | - no-liability 23 | - trademark-use 24 | --- 25 | 26 | Microsoft Reciprocal License (MS-RL) 27 | 28 | This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 29 | 30 | 1. Definitions 31 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. 32 | A "contribution" is the original software, or any additions or changes to the software. 33 | A "contributor" is any person that distributes its contribution under this license. 34 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 35 | 36 | 2. Grant of Rights 37 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 38 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 39 | 40 | 3. Conditions and Limitations 41 | (A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose. 42 | (B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 43 | (C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 44 | (D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 45 | (E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 46 | (F) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 47 | -------------------------------------------------------------------------------- /assets/ms_rl.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var ms_rl = txt(asset{Name: "ms_rl.txt", Content: "" + 6 | "---\ntitle: Microsoft Reciprocal License\nhidden: true \n\nsource: http://opensource.org/licenses/ms-pl\n\ndescription: \"Microsoft Open Source\"\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - patent-grant\n - private-use\n\nforbidden:\n - no-liability\n - trademark-use\n---\n\nMicrosoft Reciprocal License (MS-RL)\n\nThis license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.\n\n1. Definitions\nThe terms \"reproduce,\" \"reproduction,\" \"derivative works,\" and \"distribution\" have the same meaning here as under U.S. copyright law.\nA \"contribution\" is the original software, or any additions or changes to the software.\nA \"contributor\" is any person that distributes its contribution under this license.\n\"Licensed patents\" are a contributor's patent claims that read directly on its contribution.\n\n2. Grant of Rights\n(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.\n(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.\n\n3. Conditions and Limitations\n(A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose.\n(B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.\n(C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.\n(D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.\n(E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.\n(F) The software is licensed \"as-is.\" You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.\n" + 7 | "", etag: `"u0RPXKD0mSM="`}) 8 | -------------------------------------------------------------------------------- /assets/no_license.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: No License 3 | source: "http://choosealicense.com/no-license/" 4 | 5 | description: You retain all rights and do not permit distribution, reproduction, or derivative works. You may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, publishing code in a public repository on GitHub requires that you allow others to view and fork your code. 6 | 7 | how: Simply do nothing, though including a copyright notice is recommended. 8 | 9 | note: This option may be subject to the Terms Of Use of the site where you publish your source code. 10 | 11 | required: 12 | - include-copyright 13 | 14 | permitted: 15 | - commercial-use 16 | - private-use 17 | 18 | forbidden: 19 | - modifications 20 | - distribution 21 | - sublicense 22 | 23 | --- 24 | 25 | Copyright [year] [fullname] 26 | -------------------------------------------------------------------------------- /assets/no_license.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var no_license = txt(asset{Name: "no_license.txt", Content: "" + 6 | "---\ntitle: No License\nsource: \"http://choosealicense.com/no-license/\"\n\ndescription: You retain all rights and do not permit distribution, reproduction, or derivative works. You may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, publishing code in a public repository on GitHub requires that you allow others to view and fork your code.\n\nhow: Simply do nothing, though including a copyright notice is recommended.\n\nnote: This option may be subject to the Terms Of Use of the site where you publish your source code.\n\nrequired:\n - include-copyright\n\npermitted:\n - commercial-use\n - private-use\n\nforbidden:\n - modifications\n - distribution\n - sublicense\n\n---\n\nCopyright [year] [fullname]\n" + 7 | "", etag: `"Rfz7rnQm9Y0="`}) 8 | -------------------------------------------------------------------------------- /assets/ofl_1.1.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: SIL Open Font License 1.1 3 | redirect_from: /licenses/ofl/ 4 | hidden: true 5 | source: http://scripts.sil.org/OFL_web 6 | 7 | description: The Open Font License (OFL) is maintained by SIL International. It attempts to be a compromise between the values of the free software and typeface design communities. It is used for almost all open source font projects, including those by Adobe, Google and Mozilla. 8 | 9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your font source and copy the text of the license into the file. Replace [year] with the current year and [fullname] ([email]) with the name and contact email address of each copyright holder. You may take the additional step of appending a Reserved Font Name notice. This option requires anyone making modifications to change the font's name, and is not ideal for web fonts (which all users will modify by changing formats and subsetting for their own needs.) 10 | 11 | note: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL. 12 | 13 | required: 14 | - include-copyright 15 | 16 | permitted: 17 | - private-use 18 | - commercial-use 19 | - modifications 20 | - distribution 21 | 22 | forbidden: 23 | - no-liability 24 | - trademark-use 25 | 26 | --- 27 | 28 | Copyright (c) [year] [fullname] ([email]) 29 | 30 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 31 | This license is copied below, and is also available with a FAQ at: 32 | http://scripts.sil.org/OFL 33 | 34 | ----------------------------------------------------------- 35 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 36 | ----------------------------------------------------------- 37 | 38 | PREAMBLE 39 | The goals of the Open Font License (OFL) are to stimulate worldwide 40 | development of collaborative font projects, to support the font creation 41 | efforts of academic and linguistic communities, and to provide a free and 42 | open framework in which fonts may be shared and improved in partnership 43 | with others. 44 | 45 | The OFL allows the licensed fonts to be used, studied, modified and 46 | redistributed freely as long as they are not sold by themselves. The 47 | fonts, including any derivative works, can be bundled, embedded, 48 | redistributed and/or sold with any software provided that any reserved 49 | names are not used by derivative works. The fonts and derivatives, 50 | however, cannot be released under any other type of license. The 51 | requirement for fonts to remain under this license does not apply 52 | to any document created using the fonts or their derivatives. 53 | 54 | DEFINITIONS 55 | "Font Software" refers to the set of files released by the Copyright 56 | Holder(s) under this license and clearly marked as such. This may 57 | include source files, build scripts and documentation. 58 | 59 | "Reserved Font Name" refers to any names specified as such after the 60 | copyright statement(s). 61 | 62 | "Original Version" refers to the collection of Font Software components as 63 | distributed by the Copyright Holder(s). 64 | 65 | "Modified Version" refers to any derivative made by adding to, deleting, 66 | or substituting -- in part or in whole -- any of the components of the 67 | Original Version, by changing formats or by porting the Font Software to a 68 | new environment. 69 | 70 | "Author" refers to any designer, engineer, programmer, technical 71 | writer or other person who contributed to the Font Software. 72 | 73 | PERMISSION AND CONDITIONS 74 | Permission is hereby granted, free of charge, to any person obtaining 75 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 76 | redistribute, and sell modified and unmodified copies of the Font 77 | Software, subject to the following conditions: 78 | 79 | 1) Neither the Font Software nor any of its individual components, 80 | in Original or Modified Versions, may be sold by itself. 81 | 82 | 2) Original or Modified Versions of the Font Software may be bundled, 83 | redistributed and/or sold with any software, provided that each copy 84 | contains the above copyright notice and this license. These can be 85 | included either as stand-alone text files, human-readable headers or 86 | in the appropriate machine-readable metadata fields within text or 87 | binary files as long as those fields can be easily viewed by the user. 88 | 89 | 3) No Modified Version of the Font Software may use the Reserved Font 90 | Name(s) unless explicit written permission is granted by the corresponding 91 | Copyright Holder. This restriction only applies to the primary font name as 92 | presented to the users. 93 | 94 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 95 | Software shall not be used to promote, endorse or advertise any 96 | Modified Version, except to acknowledge the contribution(s) of the 97 | Copyright Holder(s) and the Author(s) or with their explicit written 98 | permission. 99 | 100 | 5) The Font Software, modified or unmodified, in part or in whole, 101 | must be distributed entirely under this license, and must not be 102 | distributed under any other license. The requirement for fonts to 103 | remain under this license does not apply to any document created 104 | using the Font Software. 105 | 106 | TERMINATION 107 | This license becomes null and void if any of the above conditions are 108 | not met. 109 | 110 | DISCLAIMER 111 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 112 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 113 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 114 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 115 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 116 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 117 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 118 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 119 | OTHER DEALINGS IN THE FONT SOFTWARE. 120 | -------------------------------------------------------------------------------- /assets/ofl_1.1.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var ofl_1 = txt(asset{Name: "ofl_1.1.txt", Content: "" + 6 | "---\ntitle: SIL Open Font License 1.1\nredirect_from: /licenses/ofl/\nhidden: true\nsource: http://scripts.sil.org/OFL_web\n\ndescription: The Open Font License (OFL) is maintained by SIL International. It attempts to be a compromise between the values of the free software and typeface design communities. It is used for almost all open source font projects, including those by Adobe, Google and Mozilla.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your font source and copy the text of the license into the file. Replace [year] with the current year and [fullname] ([email]) with the name and contact email address of each copyright holder. You may take the additional step of appending a Reserved Font Name notice. This option requires anyone making modifications to change the font's name, and is not ideal for web fonts (which all users will modify by changing formats and subsetting for their own needs.)\n\nnote: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL.\n\nrequired:\n - include-copyright\n\npermitted:\n - private-use\n - commercial-use\n - modifications\n - distribution\n\nforbidden:\n - no-liability\n - trademark-use\n\n---\n\nCopyright (c) [year] [fullname] ([email])\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded,\nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION AND CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n" + 7 | "", etag: `"ompBghIC8fg="`}) 8 | -------------------------------------------------------------------------------- /assets/osl_3.0.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Open Software License 3.0 3 | hidden: true 4 | source: http://opensource.org/licenses/OSL-3.0 5 | 6 | description: OSL 3.0 is a copyleft license that does not require reciprocal licensing on linked works. It also provides an express grant of patent rights from contributors to users, with a termination clause triggered if a user files a patent infringement lawsuit. 7 | 8 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice "Licensed under the Open Software License version 3.0" adjacent to the copyright notice. 9 | 10 | note: OSL 3.0's author has provided an explanation behind the creation of the license. 11 | 12 | using: 13 | Magento Community Edition: "http://magento.com/" 14 | Parsimony: "https://github.com/parsimony/parsimony" 15 | PrestaShop: "https://www.prestashop.com" 16 | Mulgara: "http://mulgara.org" 17 | AbanteCart: "http://www.abantecart.com/" 18 | 19 | required: 20 | - include-copyright 21 | - disclose-source 22 | 23 | permitted: 24 | - commercial-use 25 | - distribution 26 | - modifications 27 | - patent-grant 28 | - private-use 29 | - sublicense 30 | 31 | 32 | forbidden: 33 | - trademark-use 34 | - no-liability 35 | 36 | --- 37 | 38 | Open Software License ("OSL") v 3.0 39 | 40 | This Open Software License (the "License") applies to any original work of 41 | authorship (the "Original Work") whose owner (the "Licensor") has placed the 42 | following licensing notice adjacent to the copyright notice for the Original 43 | Work: 44 | 45 | Licensed under the Open Software License version 3.0 46 | 47 | 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, 48 | non-exclusive, sublicensable license, for the duration of the copyright, to do 49 | the following: 50 | 51 | a) to reproduce the Original Work in copies, either alone or as part of a 52 | collective work; 53 | 54 | b) to translate, adapt, alter, transform, modify, or arrange the Original 55 | Work, thereby creating derivative works ("Derivative Works") based upon the 56 | Original Work; 57 | 58 | c) to distribute or communicate copies of the Original Work and Derivative 59 | Works to the public, with the proviso that copies of Original Work or 60 | Derivative Works that You distribute or communicate shall be licensed under 61 | this Open Software License; 62 | 63 | d) to perform the Original Work publicly; and 64 | 65 | e) to display the Original Work publicly. 66 | 67 | 2) Grant of Patent License. Licensor grants You a worldwide, royalty- free, 68 | non-exclusive, sublicensable license, under patent claims owned or controlled 69 | by the Licensor that are embodied in the Original Work as furnished by the 70 | Licensor, for the duration of the patents, to make, use, sell, offer for sale, 71 | have made, and import the Original Work and Derivative Works. 72 | 73 | 3) Grant of Source Code License. The term "Source Code" means the preferred 74 | form of the Original Work for making modifications to it and all available 75 | documentation describing how to modify the Original Work. Licensor agrees to 76 | provide a machine-readable copy of the Source Code of the Original Work along 77 | with each copy of the Original Work that Licensor distributes. Licensor 78 | reserves the right to satisfy this obligation by placing a machine-readable 79 | copy of the Source Code in an information repository reasonably calculated to 80 | permit inexpensive and convenient access by You for as long as Licensor 81 | continues to distribute the Original Work. 82 | 83 | 4) Exclusions From License Grant. Neither the names of Licensor, nor the names 84 | of any contributors to the Original Work, nor any of their trademarks or 85 | service marks, may be used to endorse or promote products derived from this 86 | Original Work without express prior permission of the Licensor. Except as 87 | expressly stated herein, nothing in this License grants any license to 88 | Licensor's trademarks, copyrights, patents, trade secrets or any other 89 | intellectual property. No patent license is granted to make, use, sell, offer 90 | for sale, have made, or import embodiments of any patent claims other than the 91 | licensed claims defined in Section 2. No license is granted to the trademarks 92 | of Licensor even if such marks are included in the Original Work. Nothing in 93 | this License shall be interpreted to prohibit Licensor from licensing under 94 | terms different from this License any Original Work that Licensor otherwise 95 | would have a right to license. 96 | 97 | 5) External Deployment. The term "External Deployment" means the use, 98 | distribution, or communication of the Original Work or Derivative Works in any 99 | way such that the Original Work or Derivative Works may be used by anyone 100 | other than You, whether those works are distributed or communicated to those 101 | persons or made available as an application intended for use over a network. 102 | As an express condition for the grants of license hereunder, You must treat 103 | any External Deployment by You of the Original Work or a Derivative Work as a 104 | distribution under section 1(c). 105 | 106 | 6) Attribution Rights. You must retain, in the Source Code of any Derivative 107 | Works that You create, all copyright, patent, or trademark notices from the 108 | Source Code of the Original Work, as well as any notices of licensing and any 109 | descriptive text identified therein as an "Attribution Notice." You must cause 110 | the Source Code for any Derivative Works that You create to carry a prominent 111 | Attribution Notice reasonably calculated to inform recipients that You have 112 | modified the Original Work. 113 | 114 | 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that 115 | the copyright in and to the Original Work and the patent rights granted herein 116 | by Licensor are owned by the Licensor or are sublicensed to You under the 117 | terms of this License with the permission of the contributor(s) of those 118 | copyrights and patent rights. Except as expressly stated in the immediately 119 | preceding sentence, the Original Work is provided under this License on an "AS 120 | IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without 121 | limitation, the warranties of non-infringement, merchantability or fitness for 122 | a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK 123 | IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this 124 | License. No license to the Original Work is granted by this License except 125 | under this disclaimer. 126 | 127 | 8) Limitation of Liability. Under no circumstances and under no legal theory, 128 | whether in tort (including negligence), contract, or otherwise, shall the 129 | Licensor be liable to anyone for any indirect, special, incidental, or 130 | consequential damages of any character arising as a result of this License or 131 | the use of the Original Work including, without limitation, damages for loss 132 | of goodwill, work stoppage, computer failure or malfunction, or any and all 133 | other commercial damages or losses. This limitation of liability shall not 134 | apply to the extent applicable law prohibits such limitation. 135 | 136 | 9) Acceptance and Termination. If, at any time, You expressly assented to this 137 | License, that assent indicates your clear and irrevocable acceptance of this 138 | License and all of its terms and conditions. If You distribute or communicate 139 | copies of the Original Work or a Derivative Work, You must make a reasonable 140 | effort under the circumstances to obtain the express assent of recipients to 141 | the terms of this License. This License conditions your rights to undertake 142 | the activities listed in Section 1, including your right to create Derivative 143 | Works based upon the Original Work, and doing so without honoring these terms 144 | and conditions is prohibited by copyright law and international treaty. 145 | Nothing in this License is intended to affect copyright exceptions and 146 | limitations (including "fair use" or "fair dealing"). This License shall 147 | terminate immediately and You may no longer exercise any of the rights granted 148 | to You by this License upon your failure to honor the conditions in Section 149 | 1(c). 150 | 151 | 10) Termination for Patent Action. This License shall terminate automatically 152 | and You may no longer exercise any of the rights granted to You by this 153 | License as of the date You commence an action, including a cross-claim or 154 | counterclaim, against Licensor or any licensee alleging that the Original Work 155 | infringes a patent. This termination provision shall not apply for an action 156 | alleging patent infringement by combinations of the Original Work with other 157 | software or hardware. 158 | 159 | 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this 160 | License may be brought only in the courts of a jurisdiction wherein the 161 | Licensor resides or in which Licensor conducts its primary business, and under 162 | the laws of that jurisdiction excluding its conflict-of-law provisions. The 163 | application of the United Nations Convention on Contracts for the 164 | International Sale of Goods is expressly excluded. Any use of the Original 165 | Work outside the scope of this License or after its termination shall be 166 | subject to the requirements and penalties of copyright or patent law in the 167 | appropriate jurisdiction. This section shall survive the termination of this 168 | License. 169 | 170 | 12) Attorneys' Fees. In any action to enforce the terms of this License or 171 | seeking damages relating thereto, the prevailing party shall be entitled to 172 | recover its costs and expenses, including, without limitation, reasonable 173 | attorneys' fees and costs incurred in connection with such action, including 174 | any appeal of such action. This section shall survive the termination of this 175 | License. 176 | 177 | 13) Miscellaneous. If any provision of this License is held to be 178 | unenforceable, such provision shall be reformed only to the extent necessary 179 | to make it enforceable. 180 | 181 | 14) Definition of "You" in This License. "You" throughout this License, 182 | whether in upper or lower case, means an individual or a legal entity 183 | exercising rights under, and complying with all of the terms of, this License. 184 | For legal entities, "You" includes any entity that controls, is controlled by, 185 | or is under common control with you. For purposes of this definition, 186 | "control" means (i) the power, direct or indirect, to cause the direction or 187 | management of such entity, whether by contract or otherwise, or (ii) ownership 188 | of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial 189 | ownership of such entity. 190 | 191 | 15) Right to Use. You may use the Original Work in all ways not otherwise 192 | restricted or conditioned by this License or by law, and Licensor promises not 193 | to interfere with or be responsible for such uses by You. 194 | 195 | 16) Modification of This License. This License is Copyright © 2005 Lawrence 196 | Rosen. Permission is granted to copy, distribute, or communicate this License 197 | without modification. Nothing in this License permits You to modify this 198 | License as applied to the Original Work or to Derivative Works. However, You 199 | may modify the text of this License and copy, distribute or communicate your 200 | modified version (the "Modified License") and apply it to other original works 201 | of authorship subject to the following conditions: (i) You may not indicate in 202 | any way that your Modified License is the "Open Software License" or "OSL" and 203 | you may not use those names in the name of your Modified License; (ii) You 204 | must replace the notice specified in the first paragraph above with the notice 205 | "Licensed under " or with a notice of your own 206 | that is not confusingly similar to the notice in this License; and (iii) You 207 | may not claim that your original works are open source software unless your 208 | Modified License has been approved by Open Source Initiative (OSI) and You 209 | comply with its license review and certification process. 210 | -------------------------------------------------------------------------------- /assets/osl_3.0.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var osl_3 = txt(asset{Name: "osl_3.0.txt", Content: "" + 6 | "---\ntitle: Open Software License 3.0\nhidden: true\nsource: http://opensource.org/licenses/OSL-3.0\n\ndescription: OSL 3.0 is a copyleft license that does not require reciprocal licensing on linked works. It also provides an express grant of patent rights from contributors to users, with a termination clause triggered if a user files a patent infringement lawsuit.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Files licensed under OSL 3.0 must also include the notice \"Licensed under the Open Software License version 3.0\" adjacent to the copyright notice.\n\nnote: OSL 3.0's author has provided an explanation behind the creation of the license.\n\nusing:\n Magento Community Edition: \"http://magento.com/\"\n Parsimony: \"https://github.com/parsimony/parsimony\"\n PrestaShop: \"https://www.prestashop.com\"\n Mulgara: \"http://mulgara.org\"\n AbanteCart: \"http://www.abantecart.com/\"\n\nrequired:\n - include-copyright\n - disclose-source\n\npermitted:\n - commercial-use\n - distribution\n - modifications\n - patent-grant\n - private-use\n - sublicense\n\n\nforbidden:\n - trademark-use\n - no-liability\n\n---\n\nOpen Software License (\"OSL\") v 3.0\n\nThis Open Software License (the \"License\") applies to any original work of\nauthorship (the \"Original Work\") whose owner (the \"Licensor\") has placed the\nfollowing licensing notice adjacent to the copyright notice for the Original\nWork:\n\nLicensed under the Open Software License version 3.0\n\n1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free,\nnon-exclusive, sublicensable license, for the duration of the copyright, to do\nthe following:\n\n a) to reproduce the Original Work in copies, either alone or as part of a\n collective work;\n\n b) to translate, adapt, alter, transform, modify, or arrange the Original\n Work, thereby creating derivative works (\"Derivative Works\") based upon the\n Original Work;\n\n c) to distribute or communicate copies of the Original Work and Derivative\n Works to the public, with the proviso that copies of Original Work or\n Derivative Works that You distribute or communicate shall be licensed under\n this Open Software License;\n\n d) to perform the Original Work publicly; and\n\n e) to display the Original Work publicly.\n\n2) Grant of Patent License. Licensor grants You a worldwide, royalty- free,\nnon-exclusive, sublicensable license, under patent claims owned or controlled\nby the Licensor that are embodied in the Original Work as furnished by the\nLicensor, for the duration of the patents, to make, use, sell, offer for sale,\nhave made, and import the Original Work and Derivative Works.\n\n3) Grant of Source Code License. The term \"Source Code\" means the preferred\nform of the Original Work for making modifications to it and all available\ndocumentation describing how to modify the Original Work. Licensor agrees to\nprovide a machine-readable copy of the Source Code of the Original Work along\nwith each copy of the Original Work that Licensor distributes. Licensor\nreserves the right to satisfy this obligation by placing a machine-readable\ncopy of the Source Code in an information repository reasonably calculated to\npermit inexpensive and convenient access by You for as long as Licensor\ncontinues to distribute the Original Work.\n\n4) Exclusions From License Grant. Neither the names of Licensor, nor the names\nof any contributors to the Original Work, nor any of their trademarks or\nservice marks, may be used to endorse or promote products derived from this\nOriginal Work without express prior permission of the Licensor. Except as\nexpressly stated herein, nothing in this License grants any license to\nLicensor's trademarks, copyrights, patents, trade secrets or any other\nintellectual property. No patent license is granted to make, use, sell, offer\nfor sale, have made, or import embodiments of any patent claims other than the\nlicensed claims defined in Section 2. No license is granted to the trademarks\nof Licensor even if such marks are included in the Original Work. Nothing in\nthis License shall be interpreted to prohibit Licensor from licensing under\nterms different from this License any Original Work that Licensor otherwise\nwould have a right to license.\n\n5) External Deployment. The term \"External Deployment\" means the use,\ndistribution, or communication of the Original Work or Derivative Works in any\nway such that the Original Work or Derivative Works may be used by anyone\nother than You, whether those works are distributed or communicated to those\npersons or made available as an application intended for use over a network.\nAs an express condition for the grants of license hereunder, You must treat\nany External Deployment by You of the Original Work or a Derivative Work as a\ndistribution under section 1(c).\n\n6) Attribution Rights. You must retain, in the Source Code of any Derivative\nWorks that You create, all copyright, patent, or trademark notices from the\nSource Code of the Original Work, as well as any notices of licensing and any\ndescriptive text identified therein as an \"Attribution Notice.\" You must cause\nthe Source Code for any Derivative Works that You create to carry a prominent\nAttribution Notice reasonably calculated to inform recipients that You have\nmodified the Original Work.\n\n7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that\nthe copyright in and to the Original Work and the patent rights granted herein\nby Licensor are owned by the Licensor or are sublicensed to You under the\nterms of this License with the permission of the contributor(s) of those\ncopyrights and patent rights. Except as expressly stated in the immediately\npreceding sentence, the Original Work is provided under this License on an \"AS\nIS\" BASIS and WITHOUT WARRANTY, either express or implied, including, without\nlimitation, the warranties of non-infringement, merchantability or fitness for\na particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK\nIS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this\nLicense. No license to the Original Work is granted by this License except\nunder this disclaimer.\n\n8) Limitation of Liability. Under no circumstances and under no legal theory,\nwhether in tort (including negligence), contract, or otherwise, shall the\nLicensor be liable to anyone for any indirect, special, incidental, or\nconsequential damages of any character arising as a result of this License or\nthe use of the Original Work including, without limitation, damages for loss\nof goodwill, work stoppage, computer failure or malfunction, or any and all\nother commercial damages or losses. This limitation of liability shall not\napply to the extent applicable law prohibits such limitation.\n\n9) Acceptance and Termination. If, at any time, You expressly assented to this\nLicense, that assent indicates your clear and irrevocable acceptance of this\nLicense and all of its terms and conditions. If You distribute or communicate\ncopies of the Original Work or a Derivative Work, You must make a reasonable\neffort under the circumstances to obtain the express assent of recipients to\nthe terms of this License. This License conditions your rights to undertake\nthe activities listed in Section 1, including your right to create Derivative\nWorks based upon the Original Work, and doing so without honoring these terms\nand conditions is prohibited by copyright law and international treaty.\nNothing in this License is intended to affect copyright exceptions and\nlimitations (including \"fair use\" or \"fair dealing\"). This License shall\nterminate immediately and You may no longer exercise any of the rights granted\nto You by this License upon your failure to honor the conditions in Section\n1(c).\n\n10) Termination for Patent Action. This License shall terminate automatically\nand You may no longer exercise any of the rights granted to You by this\nLicense as of the date You commence an action, including a cross-claim or\ncounterclaim, against Licensor or any licensee alleging that the Original Work\ninfringes a patent. This termination provision shall not apply for an action\nalleging patent infringement by combinations of the Original Work with other\nsoftware or hardware.\n\n11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this\nLicense may be brought only in the courts of a jurisdiction wherein the\nLicensor resides or in which Licensor conducts its primary business, and under\nthe laws of that jurisdiction excluding its conflict-of-law provisions. The\napplication of the United Nations Convention on Contracts for the\nInternational Sale of Goods is expressly excluded. Any use of the Original\nWork outside the scope of this License or after its termination shall be\nsubject to the requirements and penalties of copyright or patent law in the\nappropriate jurisdiction. This section shall survive the termination of this\nLicense.\n\n12) Attorneys' Fees. In any action to enforce the terms of this License or\nseeking damages relating thereto, the prevailing party shall be entitled to\nrecover its costs and expenses, including, without limitation, reasonable\nattorneys' fees and costs incurred in connection with such action, including\nany appeal of such action. This section shall survive the termination of this\nLicense.\n\n13) Miscellaneous. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent necessary\nto make it enforceable.\n\n14) Definition of \"You\" in This License. \"You\" throughout this License,\nwhether in upper or lower case, means an individual or a legal entity\nexercising rights under, and complying with all of the terms of, this License.\nFor legal entities, \"You\" includes any entity that controls, is controlled by,\nor is under common control with you. For purposes of this definition,\n\"control\" means (i) the power, direct or indirect, to cause the direction or\nmanagement of such entity, whether by contract or otherwise, or (ii) ownership\nof fifty percent (50%) or more of the outstanding shares, or (iii) beneficial\nownership of such entity.\n\n15) Right to Use. You may use the Original Work in all ways not otherwise\nrestricted or conditioned by this License or by law, and Licensor promises not\nto interfere with or be responsible for such uses by You.\n\n16) Modification of This License. This License is Copyright \u00a9 2005 Lawrence\nRosen. Permission is granted to copy, distribute, or communicate this License\nwithout modification. Nothing in this License permits You to modify this\nLicense as applied to the Original Work or to Derivative Works. However, You\nmay modify the text of this License and copy, distribute or communicate your\nmodified version (the \"Modified License\") and apply it to other original works\nof authorship subject to the following conditions: (i) You may not indicate in\nany way that your Modified License is the \"Open Software License\" or \"OSL\" and\nyou may not use those names in the name of your Modified License; (ii) You\nmust replace the notice specified in the first paragraph above with the notice\n\"Licensed under \" or with a notice of your own\nthat is not confusingly similar to the notice in this License; and (iii) You\nmay not claim that your original works are open source software unless your\nModified License has been approved by Open Source Initiative (OSI) and You\ncomply with its license review and certification process.\n" + 7 | "", etag: `"NzQc7x6xnwg="`}) 8 | -------------------------------------------------------------------------------- /assets/unlicense.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: The Unlicense 3 | tab-slug: unlicense 4 | category: Public Domain Dedication 5 | source: http://unlicense.org/UNLICENSE 6 | 7 | description: Because copyright is automatic in most countries, the Unlicense is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license. 8 | 9 | how: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file. 10 | 11 | required: 12 | 13 | permitted: 14 | - private-use 15 | - commercial-use 16 | - modifications 17 | - distribution 18 | - sublicense 19 | 20 | forbidden: 21 | - no-liability 22 | 23 | required: [] 24 | 25 | --- 26 | 27 | This is free and unencumbered software released into the public domain. 28 | 29 | Anyone is free to copy, modify, publish, use, compile, sell, or 30 | distribute this software, either in source code form or as a compiled 31 | binary, for any purpose, commercial or non-commercial, and by any 32 | means. 33 | 34 | In jurisdictions that recognize copyright laws, the author or authors 35 | of this software dedicate any and all copyright interest in the 36 | software to the public domain. We make this dedication for the benefit 37 | of the public at large and to the detriment of our heirs and 38 | successors. We intend this dedication to be an overt act of 39 | relinquishment in perpetuity of all present and future rights to this 40 | software under copyright law. 41 | 42 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 43 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 44 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 45 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 46 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 47 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 48 | OTHER DEALINGS IN THE SOFTWARE. 49 | 50 | For more information, please refer to 51 | -------------------------------------------------------------------------------- /assets/unlicense.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var unlicense = txt(asset{Name: "unlicense.txt", Content: "" + 6 | "---\ntitle: The Unlicense\ntab-slug: unlicense\ncategory: Public Domain Dedication\nsource: http://unlicense.org/UNLICENSE\n\ndescription: Because copyright is automatic in most countries, the Unlicense is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license.\n\nhow: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file.\n\nrequired:\n\npermitted:\n - private-use\n - commercial-use\n - modifications\n - distribution\n - sublicense\n\nforbidden:\n - no-liability\n\nrequired: []\n\n---\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \n" + 7 | "", etag: `"HXgy7lvrkB0="`}) 8 | -------------------------------------------------------------------------------- /assets/wtfpl.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Do What The F*ck You Want To Public License" 3 | hidden: true 4 | source: http://www.wtfpl.net/ 5 | 6 | description: The easiest licence out there. It gives the user permissions to do whatever they want with your code. 7 | 8 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. 9 | 10 | required: [] 11 | 12 | permitted: 13 | - commercial-use 14 | - modifications 15 | - distribution 16 | - sublicense 17 | - private-use 18 | 19 | forbidden: [] 20 | 21 | --- 22 | 23 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 24 | Version 2, December 2004 25 | 26 | Copyright (C) 2004 [fullname] <[email]> 27 | 28 | Everyone is permitted to copy and distribute verbatim or modified 29 | copies of this license document, and changing it is allowed as long 30 | as the name is changed. 31 | 32 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 33 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 34 | 35 | 0. You just DO WHAT THE FUCK YOU WANT TO. 36 | -------------------------------------------------------------------------------- /assets/wtfpl.txt.gen.go: -------------------------------------------------------------------------------- 1 | // AUTOMATICALLY GENERATED FILE. DO NOT EDIT. 2 | 3 | package assets 4 | 5 | var wtfpl = txt(asset{Name: "wtfpl.txt", Content: "" + 6 | "---\ntitle: \"Do What The F*ck You Want To Public License\"\nhidden: true\nsource: http://www.wtfpl.net/\n\ndescription: The easiest licence out there. It gives the user permissions to do whatever they want with your code.\n\nhow: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.\n\nrequired: []\n\npermitted:\n - commercial-use\n - modifications\n - distribution\n - sublicense\n - private-use\n\nforbidden: []\n\n---\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2004 [fullname] <[email]>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n" + 7 | "", etag: `"usH7ExPplwo="`}) 8 | -------------------------------------------------------------------------------- /licenses_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "path/filepath" 6 | "strings" 7 | "testing" 8 | ) 9 | 10 | type testResult struct { 11 | Package string 12 | License string 13 | Score int 14 | Extra int 15 | Missing int 16 | Err string 17 | } 18 | 19 | func listTestLicenses(pkgs []string) ([]testResult, error) { 20 | gopath, err := filepath.Abs("testdata") 21 | if err != nil { 22 | return nil, err 23 | } 24 | licenses, err := listLicenses(gopath, pkgs) 25 | if err != nil { 26 | return nil, err 27 | } 28 | res := []testResult{} 29 | for _, l := range licenses { 30 | r := testResult{ 31 | Package: l.Package, 32 | } 33 | if l.Template != nil { 34 | r.License = l.Template.Title 35 | r.Score = int(100 * l.Score) 36 | } 37 | if l.Err != "" { 38 | r.Err = "some error" 39 | } 40 | r.Extra = len(l.ExtraWords) 41 | r.Missing = len(l.MissingWords) 42 | res = append(res, r) 43 | } 44 | return res, nil 45 | } 46 | 47 | func compareTestLicenses(pkgs []string, wanted []testResult) error { 48 | stringify := func(res []testResult) string { 49 | parts := []string{} 50 | for _, r := range res { 51 | s := fmt.Sprintf("%s \"%s\" %d%%", r.Package, r.License, r.Score) 52 | if r.Err != "" { 53 | s += " " + r.Err 54 | } 55 | if r.Extra > 0 { 56 | s += fmt.Sprintf(" +%d", r.Extra) 57 | } 58 | if r.Missing > 0 { 59 | s += fmt.Sprintf(" -%d", r.Missing) 60 | } 61 | parts = append(parts, s) 62 | } 63 | return strings.Join(parts, "\n") 64 | } 65 | 66 | licenses, err := listTestLicenses(pkgs) 67 | if err != nil { 68 | return err 69 | } 70 | got := stringify(licenses) 71 | expected := stringify(wanted) 72 | if got != expected { 73 | return fmt.Errorf("licenses do not match:\n%s\n!=\n%s", got, expected) 74 | } 75 | return nil 76 | } 77 | 78 | func TestNoDependencies(t *testing.T) { 79 | err := compareTestLicenses([]string{"colors/red"}, []testResult{ 80 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 81 | }) 82 | if err != nil { 83 | t.Fatal(err) 84 | } 85 | } 86 | 87 | func TestMultipleLicenses(t *testing.T) { 88 | err := compareTestLicenses([]string{"colors/blue"}, []testResult{ 89 | {Package: "colors/blue", License: "Apache License 2.0", Score: 100}, 90 | }) 91 | if err != nil { 92 | t.Fatal(err) 93 | } 94 | } 95 | 96 | func TestNoLicense(t *testing.T) { 97 | err := compareTestLicenses([]string{"colors/green"}, []testResult{ 98 | {Package: "colors/green", License: "", Score: 0}, 99 | }) 100 | if err != nil { 101 | t.Fatal(err) 102 | } 103 | } 104 | 105 | func TestMainWithDependencies(t *testing.T) { 106 | // It also tests license retrieval in parent directory. 107 | err := compareTestLicenses([]string{"colors/cmd/paint"}, []testResult{ 108 | {Package: "colors/cmd/paint", License: "Academic Free License v3.0", Score: 100}, 109 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 110 | }) 111 | if err != nil { 112 | t.Fatal(err) 113 | } 114 | } 115 | 116 | func TestMainWithAliasedDependencies(t *testing.T) { 117 | err := compareTestLicenses([]string{"colors/cmd/mix"}, []testResult{ 118 | {Package: "colors/cmd/mix", License: "Academic Free License v3.0", Score: 100}, 119 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 120 | {Package: "couleurs/red", License: "GNU Lesser General Public License v2.1", 121 | Score: 100}, 122 | }) 123 | if err != nil { 124 | t.Fatal(err) 125 | } 126 | } 127 | 128 | func TestMissingPackage(t *testing.T) { 129 | _, err := listTestLicenses([]string{"colors/missing"}) 130 | if err == nil { 131 | t.Fatal("no error on missing package") 132 | } 133 | if _, ok := err.(*MissingError); !ok { 134 | t.Fatalf("MissingError expected") 135 | } 136 | } 137 | 138 | func TestMismatch(t *testing.T) { 139 | err := compareTestLicenses([]string{"colors/yellow"}, []testResult{ 140 | {Package: "colors/yellow", License: "Microsoft Reciprocal License", Score: 25, 141 | Extra: 106, Missing: 131}, 142 | }) 143 | if err != nil { 144 | t.Fatal(err) 145 | } 146 | } 147 | 148 | func TestNoBuildableGoSourceFiles(t *testing.T) { 149 | _, err := listTestLicenses([]string{"colors/cmd"}) 150 | if err == nil { 151 | t.Fatal("no error on missing package") 152 | } 153 | if _, ok := err.(*MissingError); !ok { 154 | t.Fatalf("MissingError expected") 155 | } 156 | } 157 | 158 | func TestBroken(t *testing.T) { 159 | err := compareTestLicenses([]string{"colors/broken"}, []testResult{ 160 | {Package: "colors/broken", License: "GNU General Public License v3.0", Score: 100}, 161 | {Package: "colors/missing", License: "", Score: 0, Err: "some error"}, 162 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 163 | }) 164 | if err != nil { 165 | t.Fatal(err) 166 | } 167 | } 168 | 169 | func TestBrokenDependency(t *testing.T) { 170 | err := compareTestLicenses([]string{"colors/purple"}, []testResult{ 171 | {Package: "colors/broken", License: "GNU General Public License v3.0", Score: 100}, 172 | {Package: "colors/missing", License: "", Score: 0, Err: "some error"}, 173 | {Package: "colors/purple", License: "", Score: 0}, 174 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 175 | }) 176 | if err != nil { 177 | t.Fatal(err) 178 | } 179 | } 180 | 181 | func TestPackageExpression(t *testing.T) { 182 | err := compareTestLicenses([]string{"colors/cmd/..."}, []testResult{ 183 | {Package: "colors/cmd/mix", License: "Academic Free License v3.0", Score: 100}, 184 | {Package: "colors/cmd/paint", License: "Academic Free License v3.0", Score: 100}, 185 | {Package: "colors/red", License: "MIT License", Score: 98, Missing: 2}, 186 | {Package: "couleurs/red", License: "GNU Lesser General Public License v2.1", 187 | Score: 100}, 188 | }) 189 | if err != nil { 190 | t.Fatal(err) 191 | } 192 | } 193 | 194 | func TestCleanLicenseData(t *testing.T) { 195 | data := `The MIT License (MIT) 196 | 197 | Copyright (c) 2013 Ben Johnson 198 | 199 | Some other lines. 200 | And more. 201 | ` 202 | cleaned := string(cleanLicenseData([]byte(data))) 203 | wanted := "the mit license (mit)\n\t\n\tsome other lines.\n\tand more.\n\t" 204 | if wanted != cleaned { 205 | t.Fatalf("license data mismatch: %q\n!=\n%q", cleaned, wanted) 206 | } 207 | } 208 | 209 | func TestStandardPackages(t *testing.T) { 210 | err := compareTestLicenses([]string{"encoding/json", "cmd/addr2line"}, []testResult{}) 211 | if err != nil { 212 | t.Fatal(err) 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /testdata/src/colors/blue/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Patrick Mézard 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /testdata/src/colors/blue/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /testdata/src/colors/blue/blue.go: -------------------------------------------------------------------------------- 1 | package blue 2 | 3 | func blue() string { 4 | return "blue" 5 | } 6 | -------------------------------------------------------------------------------- /testdata/src/colors/broken/broken.go: -------------------------------------------------------------------------------- 1 | package broken 2 | 3 | import ( 4 | "colors/red" 5 | "colors/missing" 6 | ) 7 | 8 | // Does not compile at all 9 | iDontEven = 10 | -------------------------------------------------------------------------------- /testdata/src/colors/cmd/LICENSE.md: -------------------------------------------------------------------------------- 1 | Academic Free License (“AFL”) v. 3.0 2 | 3 | This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: 4 | 5 | Licensed under the Academic Free License version 3.0 6 | 7 | 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: 8 | 9 | a) to reproduce the Original Work in copies, either alone or as part of a collective work; 10 | b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; 11 | c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor’s reserved rights and remedies, in this Academic Free License; 12 | d) to perform the Original Work publicly; and 13 | e) to display the Original Work publicly. 14 | 15 | 2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 16 | 17 | 3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 18 | 19 | 4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor’s trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 20 | 21 | 5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 22 | 23 | 6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 24 | 25 | 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 26 | 27 | 8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 28 | 29 | 9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including “fair use” or “fair dealing”). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 30 | 31 | 10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 32 | 33 | 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 34 | 35 | 12) Attorneys’ Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 36 | 37 | 13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 38 | 39 | 14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 40 | 41 | 15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 42 | 43 | 16) Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. 44 | -------------------------------------------------------------------------------- /testdata/src/colors/cmd/mix/mix.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "colors/red" 5 | red2 "couleurs/red" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | fmt.Println(red2.red(), red.red()) 11 | } 12 | -------------------------------------------------------------------------------- /testdata/src/colors/cmd/paint/paint.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "colors/red" 5 | "fmt" 6 | ) 7 | 8 | func main() { 9 | fmt.Println(red.rouge()) 10 | } 11 | -------------------------------------------------------------------------------- /testdata/src/colors/green/green.go: -------------------------------------------------------------------------------- 1 | package green 2 | 3 | func green() string { 4 | return "green" 5 | } 6 | -------------------------------------------------------------------------------- /testdata/src/colors/purple/purple.go: -------------------------------------------------------------------------------- 1 | package purple 2 | 3 | import ( 4 | "colors/broken" 5 | "colors/red" 6 | ) 7 | 8 | func purple() string { 9 | return "purple" + broken.broken() + red.red() 10 | } 11 | -------------------------------------------------------------------------------- /testdata/src/colors/red/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Patrick Mézard 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /testdata/src/colors/red/red.go: -------------------------------------------------------------------------------- 1 | package red 2 | 3 | func red() string { 4 | return "red" 5 | } 6 | -------------------------------------------------------------------------------- /testdata/src/colors/yellow/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # The Go Programming Language 2 | 3 | Go is an open source programming language that makes it easy to build simple, 4 | reliable, and efficient software. 5 | 6 | ![Gopher image](doc/gopher/fiveyears.jpg) 7 | 8 | For documentation about how to install and use Go, 9 | visit https://golang.org/ or load doc/install-source.html 10 | in your web browser. 11 | 12 | Our canonical Git repository is located at https://go.googlesource.com/go. 13 | There is a mirror of the repository at https://github.com/golang/go. 14 | 15 | Go is the work of hundreds of contributors. We appreciate your help! 16 | 17 | To contribute, please read the contribution guidelines: 18 | https://golang.org/doc/contribute.html 19 | 20 | ##### Note that we do not accept pull requests and that we use the issue tracker for bug reports and proposals only. Please ask questions on https://forum.golangbridge.org or https://groups.google.com/forum/#!forum/golang-nuts. 21 | 22 | Unless otherwise noted, the Go source files are distributed 23 | under the BSD-style license found in the LICENSE file. 24 | 25 | -- 26 | 27 | ## Binary Distribution Notes 28 | 29 | If you have just untarred a binary Go distribution, you need to set 30 | the environment variable $GOROOT to the full path of the go 31 | directory (the one containing this file). You can omit the 32 | variable if you unpack it into /usr/local/go, or if you rebuild 33 | from sources by running all.bash (see doc/install-source.html). 34 | You should also add the Go binary directory $GOROOT/bin 35 | to your shell's path. 36 | 37 | For example, if you extracted the tar file into $HOME/go, you might 38 | put the following in your .profile: 39 | 40 | export GOROOT=$HOME/go 41 | export PATH=$PATH:$GOROOT/bin 42 | 43 | See https://golang.org/doc/install or doc/install.html for more details. 44 | -------------------------------------------------------------------------------- /testdata/src/colors/yellow/yellow.go: -------------------------------------------------------------------------------- 1 | package yellow 2 | 3 | func yellow() string { 4 | return "yellow" 5 | } 6 | -------------------------------------------------------------------------------- /testdata/src/couleurs/red/red.go: -------------------------------------------------------------------------------- 1 | package red 2 | 3 | func rouge() string { 4 | return "rouge" 5 | } 6 | --------------------------------------------------------------------------------