code: func NewResourceDefinition(name string, dsl func()) *ResourceDefinition {
  	return &ResourceDefinition{
  		Name:      name,
  		MediaType: "text/plain",
  		DSLFunc:   dsl,
  	}
  }
docs: // NewResourceDefinition creates a resource definition but does not
  // execute the DSL.