github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/lib/templates/fragmenta_resources/fragmenta_resource.go.tmpl (about)

     1  // Package [[ .fragmenta_resources ]] represents the [[ .fragmenta_resource ]] resource
     2  package [[ .fragmenta_resources ]]
     3  
     4  import (
     5  	"github.com/bitcubate/cryptojournal/src/lib/resource"
     6  	"github.com/bitcubate/cryptojournal/src/lib/status"
     7  )
     8  
     9  // [[ .Fragmenta_Resource ]] handles saving and retreiving [[ .fragmenta_resources ]] from the database
    10  type [[ .Fragmenta_Resource ]] struct {
    11  	// resource.Base defines behaviour and fields shared between all resources
    12  	resource.Base
    13  
    14  	// status.ResourceStatus defines a status field and associated behaviour
    15  	status.ResourceStatus
    16  
    17  [[ .fragmenta_fields ]]
    18  }