go-choose-license

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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.

  1. Choose a license based on your preferences via our guided questionnaire.
  2. Choose a license based on the community norms of the programming language you are using for your project.
  3. 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.

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.

  1. Clone the GitHub Repository & cd into the directory
git clone https://github.com/Bloomy52/go-choose-license.git
cd go-choose-license
  1. Use go build to compile the app
go build -o go-choose-license .
  1. Run the app
./go-choose-license

License

This project is licensed under the Apache 2.0 License. See LICENSE for full license text.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL