// CanonicalTemplate returns the resource URI template as a format string suitable for use in the // fmt.Printf function family. func CanonicalTemplate(r *design.ResourceDefinition) string { return design.WildcardRegex.ReplaceAllLiteralString(r.URITemplate(), "/%v") }