command
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Sep 6, 2017
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
LICENSER
Simple api that retrun text of license with current year and your copyright.
Current licenses:
- Apache License 2.0 (Apache-2.0)
- Artistic License 2.0 (Artistic-2.0)
- 2-clause BSD License (BSD-2-Clause)
- 3-clause BSD License (BSD-3-Clause)
- GNU General Public License version 3 (GPL-3.0)
- ISC License (ISC)
- GNU Lesser General Public License version 3 (LGPL-3.0)
- MIT License (MIT)
- Universal Permissive License (UPL)
- Do What The Fuck You Want To Public License (WTFPL)
Build
git clone git@github.com:k33nice/licenser
cd licenser
go build
Deploy
cp .env.sample .env
- change enviroment variables
make rollout
Run
./licenser
Usage
Make get request with choosen license
-
Apache License 2.0 (Apache-2.0)
curl -s http://localhost:33654/apache-2
-
Artistic License 2.0 (Artistic-2.0)
curl -s http://localhost:33654/artistic-2
-
2-clause BSD License (BSD-2-Clause)
curl -s http://localhost:33654/bsd-2
-
3-clause BSD License (BSD-3-Clause)
curl -s http://localhost:33654/bsd-3
-
GNU General Public License version 3 (GPL-3.0)
curl -s http://localhost:33654/gpl-3
-
ISC License (ISC)
curl -s http://localhost:33654/isc
-
GNU Lesser General Public License version 3 (LGPL-3.0)
curl -s http://localhost:33654/lgpl-3
-
MIT License (MIT)
curl -s http://localhost:33654/mit
-
Universal Permissive License (UPL)
curl -s http://localhost:33654/upl
-
Do What The Fuck You Want To Public License (WTFPL)
curl -s http://localhost:33654/wtfpl
Parameters
n
-- Name (James Bond)
e
-- Email (james.bond@mi6.gov)
y
-- Year(s) (2017, 2000 - 2017)
p
-- Project (Casino Royale)
Examples
curl -s http://localhost:33654/mit
curl -sG http://localhost:33654/mit -d e=foo@bar.baz --data-urlencode "y=2000 - 2017"
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.