command
module
Version:
v0.0.0-...-dfced06
Opens a new window with list of versions in this module.
Published: Mar 4, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
golicense
CLI tool for generating license files.
Installation
go install github.com/0x0Dx/x/golicense@latest
Usage
# Generate a license to stdout
golicense mit
# Generate a license and write to file
golicense -out mit
# Show all available licenses
golicense -show
Options
-name - Author name (defaults to git config user.name)
-email - Author email (defaults to git config user.email)
-out - Write to LICENSE file instead of stdout
-show - List all available licenses
Available Licenses
- Public Domain: CC0, Unlicense
- Permissive: MIT, Apache-2, BSD-0, BSD-2, BSD-3, ISC
- GPL: GPL-2, GPL-3, AGPL-3, LGPL-2
- Copyleft-ish: LGPL-2, MPL-2
- Weird: Be Gay Do Crimes, WTFPL, YOLO, BOLA, DWTFAWWI, Hot Potato, Curse of Knowledge
Documentation
¶
Package main provides a CLI tool for generating license files.
Source Files
¶
Directories
¶
Package licenses provides license file templates and generation.
|
Package licenses provides license file templates and generation. |
Click to show internal directories.
Click to hide internal directories.