example-go-license-validation

command module
v0.0.0-...-ab9124b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 7 Imported by: 0

README

Example Go License Validation

This is an example Go program for validating a license key. It contains a small command line program which prompts for a license key value and then validates the key using Keygen's software licensing API.

This repo is being archived. See our Go SDK instead.

Running the example

First up, configure a couple environment variables:

# Your Keygen account ID
export KEYGEN_ACCOUNT_ID="YOUR_KEYGEN_ACCOUNT_ID"

You can either run each line above within your terminal session before starting the app, or you can add the above contents to your ~/.bashrc file and then run source ~/.bashrc after saving the file.

Next, install dependencies with go mod:

go install

Then run the program:

go run main.go

Questions?

Reach out at support@keygen.sh if you have any questions or concerns!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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