add clipboard

添加剪切板
master
谢小军 5 years ago
parent 82c7a46d92
commit 79ee944f18

@ -158,8 +158,12 @@ func (s *GenStruct) GeneratesColor() []string {
} }
p.Add("\033[32;1m " + s.Notes + " \033[0m") p.Add("\033[32;1m " + s.Notes + " \033[0m")
p.Add("\033[34;1m type \033[0m", s.Name, "\033[34;1m struct \033[0m {") p.Add("\033[34;1m type \033[0m", s.Name, "\033[34;1m struct \033[0m {")
mp := make(map[string]bool, len(s.Em))
for _, v := range s.Em { for _, v := range s.Em {
p.Add(" \t\t" + v.GenerateColor()) if !mp[v.Name] {
mp[v.Name] = true
p.Add(" \t\t" + v.GenerateColor())
}
} }
p.Add(" }") p.Add(" }")

BIN
gormt

Binary file not shown.
Loading…
Cancel
Save