Go Choose Your License
Go Choose Your License ("go-choose-license") is a Go CLI app that helps you choose an open-source license for your next big project.
This project is mostly intended for newer developers who are just starting out in the open-source world, but this project can be used by anyone.
Why This Exists
As an open-source developer, I know how many open-source licenses there are.
I have used a multitude of different licenses based on my projects.
I remember when I was first starting out, I had no idea what license to use for my project,
and while ways to help choose a license did exist, nobody had a simple way for someone to
choose a license for my next project.
So, I decided to build my own, which is why we now have go-choose-license, so developers
don't have decision paralysis when it comes to choosing a license for their next project.
How This Program Works
This program is simple, but genius. It has three options users can choose from.
- Choose a license based on your preferences via our guided questionnaire.
- Choose a license based on the community norms of the programming language you are using for your project.
- Use our curated list of licenses to choose from.
Once you have selected a license, the program will help fill in specific user information for
the copyright and then add it to your project's repository.
Quick Start
We have released downloadable binaries for macOS, Windows, and Linux for both amd64 and arm64 archetectures.
You can run them by unzipping the executable and running it in the terminal in the unzipped directory
./go-choose-license
[!WARNING]
macOS Users will need to use the following sequence in order to open the binary since I don't pay for the Apple Developer Certificate and Gatekeeper doesn't like that.
xattr -d com.apple.quarantine ./go-choose-license
Want to verify that the binaries have an appropriate attestation? You can do that using the GitHub CLI.
You can find information on how to verify the binaries on the Releases Page.
[!NOTE]
Safari will sometimes automatically unzip the archive files which makes the GitHub Attestation Verification fail. Use curl -LO <asset-url> to download the file without automatic unzipping.
Installation
Don't want to download the binaries from GitHub Releases, I get it. Sometimes it is more fun to just build the software
from source. Or just download it via go install. Your choice.
In order to install the software, you need to have Go installed.
You can find instructions on downloading Go in the Installation Documentation INSTALL.md
The following instructions assume you have installed Go and have it set up correctly.
Using go install (Recommended)
You can install go-choose-license by running the following command in the terminal:
go install github.com/Bloomy52/go-choose-license@latest
Then you can run the app using the following command:
go-choose-license
[!NOTE]
You will need to make sure that your $GOPATH/bin has been added to PATH using the following commands found in the INSTALL.md file.
Building From Source
Want to build the package from source? We have a solution! You can follow the commands below to build the package from source.
- Clone the GitHub Repository & cd into the directory
git clone https://github.com/Bloomy52/go-choose-license.git
cd go-choose-license
- Use
go build to compile the app
go build -o go-choose-license .
- Run the app
./go-choose-license
License
This project is licensed under the Apache 2.0 License. See LICENSE for full license text.