Skip to content

a library to handle software license key checking and enforcement

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license.go
Notifications You must be signed in to change notification settings

jchenry/license

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

License is a library for enforcing software licenses. Currently supports Gumroad license keys.

Build Status

Installation

go get github.com/jchenry/license

Usage

func main(){

  fmt.Println(license.EnforceWith(
   func(scope string) bool {
      return s == "set-license" || s == "show-license"
	},
	license.Gumroad,
	func (f license.Activation) error{
      if !f.Active{
         return fmt.Errorf("software license is not active"
      }
   })(c.Command.Name, "<someproductid>", "<somekey>"))
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

a library to handle software license key checking and enforcement

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license.go

Stars

Watchers

Forks

Packages

No packages published

Languages