diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/config/fetcher.go | 4 | ||||
-rw-r--r-- | internal/config/importer-type.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/config/fetcher.go b/internal/config/fetcher.go index 5018b82..a01abbd 100644 --- a/internal/config/fetcher.go +++ b/internal/config/fetcher.go @@ -28,7 +28,7 @@ func (f Fetcher) String() string { return fmt.Sprintf("Fetcher(%d)", f) } -func parseFetcher(name string) (Fetcher, error) { +func ParseFetcher(name string) (Fetcher, error) { switch strcase.KebabCase(name) { case "channel": return Channel, nil @@ -43,7 +43,7 @@ func parseFetcher(name string) (Fetcher, error) { func (f *Fetcher) UnmarshalText(text []byte) error { var err error - *f, err = parseFetcher(string(text)) + *f, err = ParseFetcher(string(text)) return err } diff --git a/internal/config/importer-type.go b/internal/config/importer-type.go index b3b3e88..0d0263c 100644 --- a/internal/config/importer-type.go +++ b/internal/config/importer-type.go @@ -25,7 +25,7 @@ func (i ImporterType) String() string { return fmt.Sprintf("Type(%d)", i) } -func parseType(name string) (ImporterType, error) { +func ParseImporterType(name string) (ImporterType, error) { switch strcase.KebabCase(name) { case "packages": return Packages, nil @@ -38,7 +38,7 @@ func parseType(name string) (ImporterType, error) { func (i *ImporterType) UnmarshalText(text []byte) error { var err error - *i, err = parseType(string(text)) + *i, err = ParseImporterType(string(text)) return err } |