打印 service 列表
(newType []NewTypeBO)
| 36 | |
| 37 | // 打印 service 列表 |
| 38 | func PrintTemplates(newType []NewTypeBO) { |
| 39 | w := tabwriter.NewWriter(os.Stdout, 1, 1, 1, ' ', 0) |
| 40 | for i := 0; i < len(newType); i++ { |
| 41 | line := fmt.Sprintf("%v %v", i, newType[i].TypeName) |
| 42 | fmt.Fprintln(w, line) |
| 43 | } |
| 44 | w.Flush() |
| 45 | |
| 46 | } |
| 47 | |
| 48 | // 加载templates索引json |
| 49 | func LoadTemplatesJson() (templateTypes []NewTypeBO, err error) { |
no outgoing calls
no test coverage detected