MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / PrintTemplates

Function PrintTemplates

cli/cmd/init/global.go:38–46  ·  view source on GitHub ↗

打印 service 列表

(newType []NewTypeBO)

Source from the content-addressed store, hash-verified

36
37// 打印 service 列表
38func 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
49func LoadTemplatesJson() (templateTypes []NewTypeBO, err error) {

Callers 2

getTemplateSettingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected