code: func (gr *goResource) generateInterfaceFile(directory string) error {
  	filename := directory + "/" + strings.ToLower(gr.Name) + "_if.go"
  	return commons.GenerateFile(gr, resourceIfTemplate, "resource_if_template", filename, true)
  }
docs: // generate interface file of a resource