Comprehensive optimization

This commit is contained in:
谢小军
2019-10-17 21:06:26 +08:00
parent 8e2bcabf09
commit 16b24a1355
13 changed files with 410 additions and 233 deletions

View File

@@ -1,17 +0,0 @@
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
}

View File

@@ -1 +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
}