GithubHelp home page GithubHelp logo

keygen-sh / example-go-program Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 1.0 11 KB

A self-updating Go program that uses Keygen for licensing and auto-updates.

License: MIT License

Go 100.00%
sample-code platform-example keygen software-licensing licensing license-keys auto-updater

example-go-program's Introduction

Self-Updating Go Program

The following is a self-updating program written in Go that showcases how to use Keygen for licensing and how to implement auto-update functionality within a command line program using Keygen Dist.

image

Compiling

First up, install dependencies with dep:

dep ensure

To compile for your operating system, simply run the following from the root of the project directory:

go build

To compile for all platforms using gox, run the following:

gox -output "dist/v1.x.x/{{.OS}}-{{.Arch}}/{{.Dir}}"

Prebuilt-binaries

You can download pre-built binaries for 64bit operating systems. The pre-built binaries are of v1.0.0, so you will still be able to test auto-update functionality.

Testing licensing

Below is a list of license keys you can use to test program functionality.

Key Validity
val-key Valid
sus-key Suspended
exp-key Expired

Testing updates

Enter a valid license key and when available, press ctrl+u to install the update from v1.0.0 to v1.0.1. It will download the update, and then replace the current executable with the updated one. You can then rerun the program to use the newly updated version.

Questions?

Reach out at [email protected] if you have any questions or concerns!

example-go-program's People

Contributors

ezekg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jonyboy2000

example-go-program's Issues

Update termui to v3?

Termui has been updated since 2018 and the changes aren't fully backwards compatible.
Should termui be updated to v3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.