{"modulePath":"github.com/primelib/primecodegen","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sharedpatch\n\n## Variables\n\n```go\nvar (\n\tErrFailedToReadPatchFile              = fmt.Errorf(\"failed to read patch file\")\n\tErrUnsupportedPatchType               = fmt.Errorf(\"unsupported patch type\")\n\tErrExternalPatchMustHaveContentOrFile = fmt.Errorf(\"external patch must have either content or file specified\")\n)\n```\n\n## Functions\n\n```go\nfunc SpecPatchesToStringSlice(patches []SpecPatch) []string\n```\n\n## Types\n\n```go\ntype PatchFile func(input []byte, patch []byte) ([]byte, error)\n```\n\n```go\ntype PatchType string\n```\n\n```go\nconst (\n\tPatchTypeJSONPatch      PatchType = \"jsonpatch\"\n\tPatchTypeGitPatch       PatchType = \"git\"\n\tPatchTypeOpenAPIOverlay PatchType = \"openapi-overlay\"\n\tPatchTypeSpeakEasy      PatchType = \"speakeasy\"\n)\n```\n\n```go\ntype SpecPatch struct {\n\tType        string                 `yaml:\"type\"`\n\tID          string                 `yaml:\"id,omitempty\"`\n\tFile        string                 `yaml:\"file,omitempty\"`\n\tContent     string                 `yaml:\"content,omitempty\"`\n\tConfig      map[string]interface{} `yaml:\"config,omitempty\"` // JSON or YAML config for the patch\n\tDescription string                 `yaml:\"description,omitempty\"`\n}\n```\n\n```go\nfunc ParsePatchSpecsFromStrings(patches []string) []SpecPatch\n```\n\n```go\nfunc (p SpecPatch) String() string\n```\n\n","path":"github.com/primelib/primecodegen/pkg/patch/sharedpatch","name":"sharedpatch","synopsis":"","isRedistributable":true}
