Skip to content

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

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license.go

Stars

Watchers

Forks

Packages

No packages published

Languages