github.com/woremacx/kocha@v0.7.1-0.20150731103243-a5889322afc9/cmd/kocha-generate/kocha-generate-model/model.go (about)

     1  package main
     2  
     3  // ModelTyper is an interface for a model type.
     4  type ModelTyper interface {
     5  	// FieldTypeMap returns type map for ORM.
     6  	FieldTypeMap() map[string]ModelFieldType
     7  
     8  	// TemplatePath returns paths that templates of ORM for model generation.
     9  	TemplatePath() (templatePath string, configTemplatePath string)
    10  }
    11  
    12  type ModelFieldType struct {
    13  	Name       string
    14  	OptionTags []string
    15  }