code: func NewResource(init ...*Resource) *Resource {
  	var o *Resource
  	if len(init) == 1 {
  		o = init[0]
  	} else {
  		o = new(Resource)
  	}
  	return o.Init()
  }
docs: //
  // NewResource - creates an initialized Resource instance, returns a pointer to it
  //