github.com/jancarloviray/community@v0.41.1-0.20170124221257-33a66c87cf2f/core/product.go (about)

     1  // Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
     2  //
     3  // This software (Documize Community Edition) is licensed under
     4  // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
     5  //
     6  // You can operate outside the AGPL restrictions by purchasing
     7  // Documize Enterprise Edition and obtaining a commercial license
     8  // by contacting <sales@documize.com>.
     9  //
    10  // https://documize.com
    11  
    12  package core
    13  
    14  import "fmt"
    15  
    16  // ProdInfo describes a product
    17  type ProdInfo struct {
    18  	Edition string
    19  	Title   string
    20  	Version string
    21  	Major   string
    22  	Minor   string
    23  	Patch   string
    24  }
    25  
    26  // Product returns product edition details
    27  func Product() (p ProdInfo) {
    28  	p.Major = "0"
    29  	p.Minor = "41"
    30  	p.Patch = "0"
    31  	p.Version = fmt.Sprintf("%s.%s.%s", p.Major, p.Minor, p.Patch)
    32  	p.Edition = "Community"
    33  	p.Title = fmt.Sprintf("%s Edition", p.Edition)
    34  
    35  	return p
    36  }