# autofile **Repository Path**: itachi123456/autofile ## Basic Information - **Project Name**: autofile - **Description**: 用golang在开发model时和实际数据库表的映射需要手动写很多字段。此工具是根据数据库表自动生成模型文件。 此外,可以在此基础上继续扩展自动生成其他的文件。在开发mvc形式的web项目非常有效,是模仿php中yii框架等自动生成模型文件的。 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2017-07-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #autofile 用golang在开发model时和实际数据库表的映射需要手动写很多字段。此工具是根据数据库表自动生成模型文件。 此外,可以在此基础上继续扩展自动生成其他的文件。在开发mvc形式的web项目非常有效,是模仿php中yii框架等自动生成模型文件的。 使用方法: 在config.ini文件中配置数据库连接和待生成文件的路劲,以及表列表 例如 prepath=d:/ tablelist=p_ip,user 将生成P_ip.go 和User.go模型文件。路径在d:/下