feat: add gen_provider.go and gomod package

This commit is contained in:
Rogee
2024-12-19 17:34:12 +08:00
parent 80ab62534d
commit 4702873975
7 changed files with 629 additions and 2 deletions

View File

@@ -44,7 +44,8 @@ func commandGenEnumE(cmd *cobra.Command, args []string) error {
return nil
}
content, err := os.ReadFile(path)
var content []byte
content, err = os.ReadFile(path)
if err != nil {
return err
}