lib

package
v0.0.0-...-59d3035 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp() bool

CreateApp ... @desc 创建项目

func GetDBName

func GetDBName() string

GetDBName ... @reutrn string @desc 验证无误返回

func GetDBUrl

func GetDBUrl() string

GetDBUrl ... @reutrn string @desc 切去-conn=

func GoFmt

func GoFmt(filename string)

GoFmt ... @desc 代码格式化

func HeadToUpper

func HeadToUpper(oldstring string) string

HeadToUpper ... @return string @desc 以下划线作切割对首字母大写

func OutPerfix

func OutPerfix(oldstring string) string

OutPerfix ... @return string @desc 以下划线作切割去掉前缀

func Src

func Src() string

Types

type Field

type Field struct {
	Name    string `orm:"column(Field)"`
	Type    string `orm:"column(Type)"`
	Null    string `orm:"column(Null)"`
	Key     string `orm:"column(Key)"`
	Default string `orm:"column(Default)"`
	Extra   string `orm:"column(Extra)"`
}

func GetAllFields

func GetAllFields(tablename string) []Field

GetAllFields ... @return []slice @desc 获取表中所有表名

type Table

type Table struct {
	TableName string `orm:"column(table_name)"`
}

func GetAllTables

func GetAllTables() []Table

GetAllTables ... @return []slice @desc 获取数据库中所有表名

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL