add clipboard
添加剪切板
This commit is contained in:
@@ -158,8 +158,12 @@ func (s *GenStruct) GeneratesColor() []string {
|
||||
}
|
||||
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 {")
|
||||
mp := make(map[string]bool, len(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(" }")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user