Restructure

重构
This commit is contained in:
谢小军
2019-09-30 18:25:22 +08:00
parent 7a555e91f5
commit ee2e02092a
18 changed files with 249 additions and 247 deletions

View File

@@ -0,0 +1,17 @@
package generate
import "github.com/xxjwxc/public/tools"
// Add add one to print.打印
func (p *PrintAtom) Add(str ...interface{}) {
var tmp string
for _, v := range str {
tmp += tools.AsString(v) + _interval
}
p.lines = append(p.lines, tmp)
}
// Generates Get the generated list.获取生成列表
func (p *PrintAtom) Generates() []string {
return p.lines
}