package
0.0.0-20250113035227-62c3e98388fe
Repository: https://github.com/rankgice/api-gen.git
Documentation: pkg.go.dev

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
ConnectMysql 连接mysql.
GenerateApiField 生成api结构体字段.
GenerateProtoField 生成api结构体字段.
No description provided by the author
MustAsset is like Asset but panics when Asset would return an error.
MysqlTypeToApiType 将MySQL数据类型转换为Api数据类型.
MysqlTypeToProtoType 将MySQL数据类型转换为Proto数据类型.
ParseDatabaseName 解析数据库名称.
QueryTableComment 查询表注释.
QueryTableFiled 查询表字段.
ReplaceTemplate 匹配字符串中形如 #{xxx} 的值, 并将replaceMap中对应的值填入其中 并且确保这些值不被单引号或双引号包裹。 result返回的是填充后的结果字符串 时间复杂度 O(n).
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
ToCamelCase 将下划线命名的字符串转换为小驼峰命名.
ToPascalCase 将下划线命名的字符串转换为大驼峰命名.

# Structs

TableFieldInfo 表字段信息.